From 26c1d991d4bdbe6e497ea5590e0792bf279b7735 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. (transplanted from b3f242b5533385c0faf4e0105e45c58b80fca7af) --- extras/ignorecase.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/ignorecase.c b/extras/ignorecase.c index 16e807d..a6a83d9 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);