mirror of
https://github.com/libretro/RetroArch.git
synced 2025-04-02 10:51:52 -04: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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue