From 30eb7f91b4c91a4f49a4b5d1ccb5b87d802ec2fb Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 6 Dec 2017 14:25:41 +0100 Subject: [PATCH] Fix Coverity warning --- menu/cbs/menu_cbs_ok.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/menu/cbs/menu_cbs_ok.c b/menu/cbs/menu_cbs_ok.c index dedf26bd8e..006fe6d43f 100644 --- a/menu/cbs/menu_cbs_ok.c +++ b/menu/cbs/menu_cbs_ok.c @@ -1633,7 +1633,7 @@ static int action_ok_playlist_entry(const char *path, NULL, new_core_path); } - else + else if (!string_is_empty(core_path)) strlcpy(new_core_path, core_path, sizeof(new_core_path)); playlist_info.data = playlist; @@ -1651,7 +1651,8 @@ static int action_ok_playlist_entry(const char *path, playlist_info.idx, &path, NULL, NULL, NULL, NULL, NULL); - return default_action_ok_load_content_from_playlist_from_menu(new_core_path, path, entry_label); + return default_action_ok_load_content_from_playlist_from_menu( + new_core_path, path, entry_label); } static int action_ok_playlist_entry_start_content(const char *path,