summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-03 17:23:36 +0000
committershennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec>2012-01-03 17:23:36 +0000
commit8783485f12dd6b61b70fc5b11d6f5fe05a3c50fa (patch)
treed9ffc74d8e458488d6413a4fbdb73cbe7dc9df37 /src
parente96f584e07616223a44d45295f866367bd38ce0a (diff)
downloadhercules-8783485f12dd6b61b70fc5b11d6f5fe05a3c50fa.tar.gz
hercules-8783485f12dd6b61b70fc5b11d6f5fe05a3c50fa.tar.bz2
hercules-8783485f12dd6b61b70fc5b11d6f5fe05a3c50fa.tar.xz
hercules-8783485f12dd6b61b70fc5b11d6f5fe05a3c50fa.zip
fixing a warning in ubuntu's gcc, follow up r15358
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15359 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src')
-rw-r--r--src/common/core.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/common/core.c b/src/common/core.c
index bb7bd5cdc..4150a9532 100644
--- a/src/common/core.c
+++ b/src/common/core.c
@@ -146,12 +146,11 @@ const char* get_svn_revision(void)
if (sscanf(line," %*[^\"]\"%d%*[^\n]", &rev) == 1) {
snprintf(rA_svn_version, sizeof(rA_svn_version), "%d", rev);
}
- }
- else
- {
+ } else {
// Bin File format
- (void)fgets(line, sizeof(line), fp); // Get the name
- (void)fgets(line, sizeof(line), fp); // Get the entries kind
+ bool fgresult;
+ fgresult = ( fgets(line, sizeof(line), fp) != NULL ); // Get the name
+ fgresult = ( fgets(line, sizeof(line), fp) != NULL ); // Get the entries kind
if(fgets(line, sizeof(line), fp)) // Get the rev numver
{
snprintf(rA_svn_version, sizeof(rA_svn_version), "%d", atoi(line));