Fixed bug #646 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 17 Feb 2009 05:25:25 +0000
branchSDL-1.2
changeset 4163 bec67d0b6645
parent 4162 3b7fc3416601
child 4164 7a4c511c980a
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)
src/video/fbcon/SDL_fbvideo.c
--- a/src/video/fbcon/SDL_fbvideo.c	Mon Feb 16 22:32:34 2009 +0000
+++ b/src/video/fbcon/SDL_fbvideo.c	Tue Feb 17 05:25:25 2009 +0000
@@ -280,7 +280,7 @@
 	/* 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))