From 238e234106e142308fe239df3d2dc672f8ab9260 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 21 Feb 2017 21:20:33 +0100 Subject: [PATCH] Prevent another Coverity warning --- menu/menu_content.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/menu/menu_content.c b/menu/menu_content.c index 3ba808399a..3de778c7d0 100644 --- a/menu/menu_content.c +++ b/menu/menu_content.c @@ -148,14 +148,8 @@ bool menu_content_find_first_core(menu_content_ctx_defer_info_t *def_info, if (!string_is_empty(default_info_dir)) { - const char *default_info_path = NULL; - size_t default_info_length = 0; - - if (def_info) - { - default_info_path = def_info->path; - default_info_length = def_info->len; - } + const char *default_info_path = def_info->path; + size_t default_info_length = def_info->len; if (!string_is_empty(default_info_path)) fill_pathname_join(def_info->s,