mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 02:00:41 +00:00
use more string_is_equal
This commit is contained in:
parent
16c48fdc86
commit
6cb55231d9
@ -26,6 +26,7 @@
|
||||
#include <compat/posix_string.h>
|
||||
#include <file/file_path.h>
|
||||
#include <net/net_compat.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "msg_hash.h"
|
||||
|
||||
@ -261,7 +262,7 @@ static bool command_get_arg(const char *tok,
|
||||
|
||||
for (i = 0; i < ARRAY_SIZE(map); i++)
|
||||
{
|
||||
if (!strcmp(tok, map[i].str))
|
||||
if (string_is_equal(tok, map[i].str))
|
||||
{
|
||||
if (arg)
|
||||
*arg = NULL;
|
||||
|
@ -16,6 +16,7 @@
|
||||
#include <string.h>
|
||||
|
||||
#include <rhash.h>
|
||||
#include <string/stdstring.h>
|
||||
|
||||
#include "msg_hash.h"
|
||||
|
||||
@ -59,7 +60,7 @@ const char *msg_hash_to_str(uint32_t hash)
|
||||
break;
|
||||
}
|
||||
|
||||
if (ret && strcmp(ret, "null") != 0)
|
||||
if (ret && !string_is_equal(ret, "null"))
|
||||
return ret;
|
||||
|
||||
end:
|
||||
|
Loading…
Reference in New Issue
Block a user