소스 검색

Fixed a compiler warning.
(transplanted from b3f242b5533385c0faf4e0105e45c58b80fca7af)

Ryan C. Gordon 14 년 전
부모
커밋
26c1d991d4
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      extras/ignorecase.c

+ 1 - 1
extras/ignorecase.c

@@ -98,7 +98,7 @@ int PHYSFSEXT_locateCorrectCase(char *buf)
     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);