summaryrefslogtreecommitdiff
path: root/libmpd/0003-fix-comparison.patch
blob: 3472cb5219e01cd6f5f700cfe630170eaad61f1a (plain)
    1 From f33d4946c9349909d6ddc816d3c7eb81dd342b57 Mon Sep 17 00:00:00 2001
    2 From: Christian Hesse <mail@eworm.de>
    3 Date: Wed, 19 Jul 2017 14:40:00 +0200
    4 Subject: [PATCH 3/3] fix comparison between pointer and zero character constant
    5 ---
    6  src/libmpd-database.c | 2 +-
    7  1 file changed, 1 insertion(+), 1 deletion(-)
    8 
    9 diff --git a/src/libmpd-database.c b/src/libmpd-database.c
   10 index 2480d5e..edafc0a 100644
   11 --- a/src/libmpd-database.c
   12 +++ b/src/libmpd-database.c
   13 @@ -961,7 +961,7 @@ MpdData * mpd_database_get_directory_recursive(MpdObj *mi, const char *path)
   14  		debug_printf(DEBUG_WARNING,"not connected\n");
   15  		return NULL;
   16  	}
   17 -	if(path == '\0' || path[0] == '\0')
   18 +	if(path == NULL || path[0] == '\0')
   19  	{
   20  		debug_printf(DEBUG_ERROR, "argumant invalid\n");
   21  		return NULL;

Generated by cgit