mirror of
https://github.com/yawut/SDL.git
synced 2026-10-03 05:36:43 -05:00
Fixed bug #646
Description From Pavol Rusnak 2008-11-27 05:51:44 (-) [reply]
src/video/fbcon/SDL_fbvideo.c:283: warning: ordered comparison of pointer with
integer zero
The source code is
if (fgets(line,length,f)<=0)
Suggest replace with
if (fgets(line,length,f) == 0)
--HG--
branch : SDL-1.2
This commit is contained in:
@@ -280,7 +280,7 @@ static int read_fbmodes_line(FILE*f, char* line, int length)
|
||||
/* find a relevant line */
|
||||
do
|
||||
{
|
||||
if (fgets(line,length,f)<=0)
|
||||
if (!fgets(line,length,f))
|
||||
return 0;
|
||||
c=line;
|
||||
while(((*c=='\t')||(*c==' '))&&(*c!=0))
|
||||
|
||||
Reference in New Issue
Block a user