From b998bda5a1edbdeb13e5d28af119fdc44fe6b808 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 21 Apr 2019 21:56:40 +0200 Subject: [PATCH] Fix crash that can occur with Discord netplay --- discord/discord.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/discord/discord.c b/discord/discord.c index 4115b86291..c1c0df9bfe 100644 --- a/discord/discord.c +++ b/discord/discord.c @@ -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)