src/share/utf8/charset.c : Fix typo in conditional.
authorErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 3 Feb 2014 07:48:24 +0000 (18:48 +1100)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Mon, 3 Feb 2014 07:48:27 +0000 (18:48 +1100)
commit4be8ed8efe51844388f5e90042db4bafc4de82a3
treebabc64e15cd73fecf5ccd503db83b73b07fabefc
parent71c9555366336b5d4fcd54cf522036db68f603cf
src/share/utf8/charset.c : 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.

The problem was found by cppcheck which is run automatically on the
Debian sources. Results here:
http://cppcheck.sourceforge.net/devinfo/daca2-cppcheck1.63/daca2.html

Patch-from: Robert Kausch <robert.kausch@freac.org>
src/share/utf8/charset.c