diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-08 23:13:29 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2007-04-08 23:13:29 +0000 |
commit | 4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a (patch) | |
tree | 88bbfe1df6bac371e34879625c6bc6ce326fe36f /src | |
parent | 15ab91312a0f927110c4b274fbf57830db333777 (diff) | |
download | hercules-4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a.tar.gz hercules-4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a.tar.bz2 hercules-4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a.tar.xz hercules-4ae1b3c2a335d95a5425ecf5c19c5be2ab21e13a.zip |
- Fixed sometimes retrieving the svn-version with fopen not doing a fclose afterwards.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10191 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r-- | src/common/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/core.c b/src/common/core.c index 33b855d87..17aaa7b3c 100644 --- a/src/common/core.c +++ b/src/common/core.c @@ -148,7 +148,6 @@ const char* get_svn_revision(void) // XML File format while (fgets(line,sizeof(line),fp)) if (strstr(line,"revision=")) break; - fclose(fp); if (sscanf(line," %*[^\"]\"%d%*[^\n]", &rev) == 1) { snprintf(eA_svn_version, sizeof(eA_svn_version), "%d", rev); } @@ -164,6 +163,7 @@ const char* get_svn_revision(void) } } } + fclose(fp); } if(!(*eA_svn_version)) |