summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/core.c2
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))