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;