Fix crash that can occur with Discord netplay

This commit is contained in:
twinaphex 2019-04-21 21:56:40 +02:00
parent 3f1a516696
commit b998bda5a1

View File

@ -353,7 +353,9 @@ void discord_update(enum discord_presence presence)
{
playlist_get_index_by_path(
current_playlist, path_get(RARCH_PATH_CONTENT), &entry);
label = entry->label;
if (entry && !string_is_empty(entry->label))
label = entry->label;
}
if (!label)