See if this prevents some warnings

This commit is contained in:
libretroadmin 2024-09-15 00:03:48 +02:00
parent 0a396f0e71
commit dc7473d046
2 changed files with 3 additions and 3 deletions

View File

@ -945,7 +945,7 @@ static int action_get_title_group_settings(const char *path, const char *label,
} }
{ {
char *tok, *save; char *tok, *save = NULL;
char *label_cpy = strdup(label); char *label_cpy = strdup(label);
if ((tok = strtok_r(label_cpy, "|", &save))) if ((tok = strtok_r(label_cpy, "|", &save)))

View File

@ -6964,7 +6964,7 @@ static bool retroarch_parse_input_and_config(
case 'd': case 'd':
{ {
unsigned new_port; unsigned new_port;
char *save; char *save = NULL;
char *tok = NULL; char *tok = NULL;
int port = 0; int port = 0;
unsigned id = 0; unsigned id = 0;