From dc7473d046ccf1a08eb6180ce6594b0e803b294e Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sun, 15 Sep 2024 00:03:48 +0200 Subject: [PATCH] See if this prevents some warnings --- menu/cbs/menu_cbs_title.c | 4 ++-- retroarch.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/menu/cbs/menu_cbs_title.c b/menu/cbs/menu_cbs_title.c index 81d712b979..35c26002f4 100644 --- a/menu/cbs/menu_cbs_title.c +++ b/menu/cbs/menu_cbs_title.c @@ -945,8 +945,8 @@ static int action_get_title_group_settings(const char *path, const char *label, } { - char *tok, *save; - char *label_cpy = strdup(label); + char *tok, *save = NULL; + char *label_cpy = strdup(label); if ((tok = strtok_r(label_cpy, "|", &save))) { diff --git a/retroarch.c b/retroarch.c index 20b0a715c4..7594ad22b8 100644 --- a/retroarch.c +++ b/retroarch.c @@ -6964,7 +6964,7 @@ static bool retroarch_parse_input_and_config( case 'd': { unsigned new_port; - char *save; + char *save = NULL; char *tok = NULL; int port = 0; unsigned id = 0;