Fixed compiler warning on newer Linux systems.
authorRyan C. Gordon <icculus@icculus.org>
Mon, 01 Feb 2010 03:02:18 -0500
changeset 1027 3ab4702d6313
parent 1026 1648054f2986
child 1030 17c521170ba6
Fixed compiler warning on newer Linux systems.
test/test_physfs.c
--- a/test/test_physfs.c	Fri Jan 29 04:17:44 2010 -0500
+++ b/test/test_physfs.c	Mon Feb 01 03:02:18 2010 -0500
@@ -1116,7 +1116,9 @@
 
         do
         {
-            fgets(buf, sizeof (buf), f);
+            if (fgets(buf, sizeof (buf), f) == NULL)
+                break;
+
             if (buf[strlen(buf) - 1] == '\n')
                 buf[strlen(buf) - 1] = '\0';
             add_history(buf);