1From fa3b3b3759986171a85230ba8b53764beafdb37f Mon Sep 17 00:00:00 2001 2From: Christian Hesse <mail@eworm.de> 3Date: Wed, 19 Jul 2017 14:40:00 +0200 4Subject: [PATCH 2/3] fix comparison between pointer and zero character constant 5 6Upstream-Status: Pending [https://github.com/archlinux/svntogit-packages/tree/packages/libmpd/trunk] 7Signed-off-by: Khem Raj <raj.khem@gmail.com> 8--- 9 src/libmpd-database.c | 2 +- 10 1 file changed, 1 insertion(+), 1 deletion(-) 11 12diff --git a/src/libmpd-database.c b/src/libmpd-database.c 13index 2480d5e..edafc0a 100644 14--- a/src/libmpd-database.c 15+++ b/src/libmpd-database.c 16@@ -961,7 +961,7 @@ MpdData * mpd_database_get_directory_recursive(MpdObj *mi, const char *path) 17 debug_printf(DEBUG_WARNING,"not connected\n"); 18 return NULL; 19 } 20- if(path == '\0' || path[0] == '\0') 21+ if(path == NULL || path[0] == '\0') 22 { 23 debug_printf(DEBUG_ERROR, "argumant invalid\n"); 24 return NULL; 25-- 262.37.2 27 28