Fixed a compiler warning. stable-2.0
authorRyan C. Gordon <icculus@icculus.org>
Fri, 18 Nov 2011 01:08:19 -0500
branchstable-2.0
changeset 1195 d41453fa3ae0
parent 1190 28cedf325670
child 1287 292f5ceaf0c0
Fixed a compiler warning. (transplanted from b3f242b5533385c0faf4e0105e45c58b80fca7af)
extras/ignorecase.c
--- a/extras/ignorecase.c	Thu Oct 06 03:26:51 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);