Fixed a compiler warning.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 18 Nov 2011 01:08:19 -0500
changeset 1194 b3f242b55333
parent 1193 e4cc35000826
child 1196 54a1dfb1e6f7
Fixed a compiler warning.
extras/ignorecase.c
--- a/extras/ignorecase.c	Tue Oct 18 23:48:28 2011 -0400
+++ b/extras/ignorecase.c	Fri Nov 18 01:08:19 2011 -0500
@@ -98,7 +98,7 @@
     if (*ptr == '\0')
         return 0;  /* Uh...I guess that's success. */
 
-    while (ptr = strchr(ptr + 1, '/'))
+    while ( (ptr = strchr(ptr + 1, '/')) != NULL )
     {
         *ptr = '\0';  /* block this path section off */
         rc = locateOneElement(buf);