Explorar o código

Fixed a compiler warning.

Ryan C. Gordon %!s(int64=14) %!d(string=hai) anos
pai
achega
d1d0de3947
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      extras/ignorecase.c

+ 1 - 1
extras/ignorecase.c

@@ -98,7 +98,7 @@ int PHYSFSEXT_locateCorrectCase(char *buf)
     if (*ptr == '\0')
     if (*ptr == '\0')
         return 0;  /* Uh...I guess that's success. */
         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 */
         *ptr = '\0';  /* block this path section off */
         rc = locateOneElement(buf);
         rc = locateOneElement(buf);