[core,utils] improve utils_str_is_empty

This commit is contained in:
akallabeth 2024-09-20 13:29:01 +02:00
parent 55a5fe26fb
commit dd98b20f4a
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -257,7 +257,7 @@ BOOL utils_str_is_empty(const char* str)
{ {
if (!str) if (!str)
return TRUE; return TRUE;
if (strlen(str) == 0) if (*str == '\0')
return TRUE; return TRUE;
return FALSE; return FALSE;
} }