Skip to content

Commit

Permalink
Merge pull request RJ#4 from arnaud-lb/buildfix
Browse files Browse the repository at this point in the history
fixed build error: variable ‘ret’ set but not used
  • Loading branch information
RJ committed Dec 14, 2012
2 parents d25a496 + d7df332 commit 175733d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libketama/ketama.c
Expand Up @@ -270,14 +270,15 @@ read_server_definitions( char* filename, unsigned int* count, unsigned long* mem
unsigned int lineno = 0;
unsigned int numservers = 0;
unsigned long memtotal = 0;
char * ret;

FILE* fi = fopen( filename, "r" );
while ( fi && !feof( fi ) )
{
char sline[128] = "";

ret = fgets( sline, 127, fi );
if (fgets( sline, 127, fi ) == NULL)
continue;

lineno++;

if ( strlen( sline ) < 2 || sline[0] == '#' )
Expand Down

0 comments on commit 175733d

Please sign in to comment.