[core,utils] improve utils_str_is_empty
This commit is contained in:
parent
55a5fe26fb
commit
dd98b20f4a
@ -257,7 +257,7 @@ BOOL utils_str_is_empty(const char* str)
|
||||
{
|
||||
if (!str)
|
||||
return TRUE;
|
||||
if (strlen(str) == 0)
|
||||
if (*str == '\0')
|
||||
return TRUE;
|
||||
return FALSE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user