If strequal checks for NULL, then striequal should too.

This commit is contained in:
Alcaro 2016-01-21 01:09:05 +01:00
parent 79edafc3aa
commit c48dee0d7b

View File

@ -38,6 +38,8 @@ bool string_is_equal(const char *a, const char *b)
bool string_is_equal_noncase(const char *a, const char *b)
{
if (!a || !b)
return false;
return (strcasecmp(a, b) == 0);
}