Skip to content

Commit

Permalink
Fixed bug #646
Browse files Browse the repository at this point in the history
   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)
  • Loading branch information
slouken committed Feb 17, 2009
1 parent b6da4b6 commit d597d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/fbcon/SDL_fbvideo.c
Expand Up @@ -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))
Expand Down

0 comments on commit d597d35

Please sign in to comment.