Skip to content

Commit

Permalink
fixed build error: variable ‘ret’ set but not used
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-lb committed Nov 13, 2012
1 parent d25a496 commit d7df332
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 d7df332

Please sign in to comment.