From 8783485f12dd6b61b70fc5b11d6f5fe05a3c50fa Mon Sep 17 00:00:00 2001 From: shennetsind Date: Tue, 3 Jan 2012 17:23:36 +0000 Subject: 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 --- src/common/core.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/common') 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)); -- cgit v1.2.3-60-g2f50