mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-11 13:26:34 +00:00
Simplify sring_is_empty
This commit is contained in:
parent
447468a39d
commit
82dc569497
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user