Commit d04c2ccb authored by Marcin Baczyński's avatar Marcin Baczyński Committed by Alexandre Julliard

makedep: Silence unused result warnings.

parent aed8b8cd
...@@ -204,7 +204,7 @@ static char *get_line( FILE *file ) ...@@ -204,7 +204,7 @@ static char *get_line( FILE *file )
while (p == buffer + size - 1 && p[-1] != '\n') while (p == buffer + size - 1 && p[-1] != '\n')
{ {
buffer = xrealloc( buffer, size * 2 ); buffer = xrealloc( buffer, size * 2 );
fgets( buffer + size - 1, size + 1, file ); if (!fgets( buffer + size - 1, size + 1, file )) break;
p = buffer + strlen(buffer); p = buffer + strlen(buffer);
size *= 2; size *= 2;
} }
...@@ -216,7 +216,7 @@ static char *get_line( FILE *file ) ...@@ -216,7 +216,7 @@ static char *get_line( FILE *file )
{ {
*(--p) = 0; *(--p) = 0;
/* line ends in backslash, read continuation line */ /* line ends in backslash, read continuation line */
fgets( p, size - (p - buffer), file ); if (!fgets( p, size - (p - buffer), file )) return buffer;
input_line++; input_line++;
continue; continue;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment