From 5eec1c1f39eddb3f0d85ec740c4e283078a57f22 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 21 Feb 2017 21:13:46 +0100 Subject: [PATCH] Get rid of forward NULL --- core_info.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core_info.c b/core_info.c index 1d91ecd444..c8b35577b4 100644 --- a/core_info.c +++ b/core_info.c @@ -842,7 +842,8 @@ bool core_info_database_supports_content_path(const char *database_path, const c if (!string_is_empty(new_path)) database = strdup(new_path); - path_remove_extension(database); + if (!string_is_empty(database)) + path_remove_extension(database); delim = path_get_archive_delim(path);