mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-25 08:59:58 +00:00
Fix playlist issues with extract_value - the name of the last playlist
entry in history list was being reused for the next playlist entry
This commit is contained in:
parent
f611d1c357
commit
07f13876fc
@ -142,14 +142,14 @@ static char *extract_value(char *line, bool is_value)
|
||||
{
|
||||
line++;
|
||||
if (*line == '"')
|
||||
return strdup("");
|
||||
return NULL;
|
||||
tok = strtok_r(line, "\"", &save);
|
||||
}
|
||||
/* We don't have that. Read until next space. */
|
||||
else if (*line != '\0') /* Nothing */
|
||||
tok = strtok_r(line, " \n\t\f\r\v", &save);
|
||||
|
||||
if (tok)
|
||||
if (tok && *tok)
|
||||
return strdup(tok);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user