From d1d0de39478f10ac255cacedb8debf50b7362129 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 18 Nov 2011 01:08:19 -0500 Subject: [PATCH] Fixed a compiler warning. --- extras/ignorecase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/ignorecase.c b/extras/ignorecase.c index 9adc9f8d..afdd0023 100644 --- a/extras/ignorecase.c +++ b/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);