mirror of
https://github.com/curl/curl.git
synced 2025-01-30 14:22:33 +08:00
bad HAVE_STRICMP usage found by Bjrn Stenberg
This commit is contained in:
parent
a374925bb7
commit
ec520ceefd
@ -47,7 +47,7 @@ int strequal(const char *first, const char *second)
|
|||||||
#elif defined(HAVE_STRCMPI)
|
#elif defined(HAVE_STRCMPI)
|
||||||
return !strcmpi(first, second);
|
return !strcmpi(first, second);
|
||||||
#elif defined(HAVE_STRICMP)
|
#elif defined(HAVE_STRICMP)
|
||||||
return !strcmpi(first, second);
|
return !stricmp(first, second);
|
||||||
#else
|
#else
|
||||||
while (*first && *second) {
|
while (*first && *second) {
|
||||||
if (toupper(*first) != toupper(*second)) {
|
if (toupper(*first) != toupper(*second)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user