Skip to content

Commit

Permalink
Fixed a compiler warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Nov 18, 2011
1 parent 608958b commit d1d0de3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/ignorecase.c
Expand Up @@ -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);
Expand Down

0 comments on commit d1d0de3

Please sign in to comment.