Commit 8f237e5b authored by Ralph Giles's avatar Ralph Giles

Fix typo in conditional.

Typo in the conditional to check the exit condition in ascii_strcasecmp.
It checks for (!*s1 || !*s1) instead of (!*s1 || !*s2). The typo did
not affect the result of the function as the loop is exited before
changing s1 or s2 anyway.

Fix ported from the copy in the flac library. Thanks to dcb314 for
reporting it here.

Closes https://trac.xiph.org/ticket/2007

svn path=/trunk/vorbis-tools/; revision=19089
parent 3ecb1bbc
......@@ -55,7 +55,7 @@ static int ascii_strcasecmp(const char *s1, const char *s2)
char c1, c2;
for (;; s1++, s2++) {
if (!*s1 || !*s1)
if (!*s1 || !*s2)
break;
if (*s1 == *s2)
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment