Skip to content
Permalink
Browse files

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)
  • Loading branch information
slouken committed Feb 17, 2009
1 parent b6da4b6 commit d597d353224925e210939339e43fb113c7f17d5f
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/fbcon/SDL_fbvideo.c
@@ -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))

0 comments on commit d597d35

Please sign in to comment.