extras/ignorecase.c
branchstable-2.0
changeset 1195 d41453fa3ae0
parent 828 ee871d51510d
--- 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);