extras/ignorecase.c
changeset 1194 b3f242b55333
parent 1056 5db207d5cb58
child 1385 146019d5d747
--- 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);