Simplify sring_is_empty

This commit is contained in:
Twinaphex 2016-01-21 01:04:07 +01:00
parent 447468a39d
commit 82dc569497

View File

@ -26,15 +26,7 @@
bool string_is_empty(const char *data)
{
char **str = NULL;
if (!data)
return true;
str = (char**)&data;
if (**str == '\0')
return true;
return false;
return !data || !*data;
}
bool string_is_equal(const char *a, const char *b)