--- a/src/physfs_unicode.c Mon Apr 13 03:40:02 2009 -0400
+++ b/src/physfs_unicode.c Mon Apr 13 03:40:30 2009 -0400
@@ -392,11 +392,11 @@
{
const PHYSFS_uint32 cp1 = utf8codepoint(&str1);
const PHYSFS_uint32 cp2 = utf8codepoint(&str2);
- if (!utf8codepointcmp(cp1, cp2)) return 0;
+ if (!utf8codepointcmp(cp1, cp2)) break;
if (cp1 == 0) return 1;
} /* while */
- return 0; /* shouldn't hit this. */
+ return 0;
} /* __PHYSFS_utf8strcasecmp */
@@ -428,10 +428,10 @@
else if (cp1 > cp2)
return 1;
else if (cp1 == 0) /* they're both null chars? */
- return 0;
+ break;
} /* while */
- return 0; /* shouldn't hit this. */
+ return 0;
} /* __PHYSFS_stricmpASCII */