wok-next diff libmpd/stuff/patches/0003-fix-comparison.patch @ rev 20752

mate-control-center, volume_key, xpaint: update bdeps.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jun 01 15:40:27 2018 +0300 (2018-06-01)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libmpd/stuff/patches/0003-fix-comparison.patch	Fri Jun 01 15:40:27 2018 +0300
     1.3 @@ -0,0 +1,21 @@
     1.4 +From f33d4946c9349909d6ddc816d3c7eb81dd342b57 Mon Sep 17 00:00:00 2001
     1.5 +From: Christian Hesse <mail@eworm.de>
     1.6 +Date: Wed, 19 Jul 2017 14:40:00 +0200
     1.7 +Subject: [PATCH 3/3] fix comparison between pointer and zero character constant
     1.8 +---
     1.9 + src/libmpd-database.c | 2 +-
    1.10 + 1 file changed, 1 insertion(+), 1 deletion(-)
    1.11 +
    1.12 +diff --git a/src/libmpd-database.c b/src/libmpd-database.c
    1.13 +index 2480d5e..edafc0a 100644
    1.14 +--- a/src/libmpd-database.c
    1.15 ++++ b/src/libmpd-database.c
    1.16 +@@ -961,7 +961,7 @@ MpdData * mpd_database_get_directory_recursive(MpdObj *mi, const char *path)
    1.17 + 		debug_printf(DEBUG_WARNING,"not connected\n");
    1.18 + 		return NULL;
    1.19 + 	}
    1.20 +-	if(path == '\0' || path[0] == '\0')
    1.21 ++	if(path == NULL || path[0] == '\0')
    1.22 + 	{
    1.23 + 		debug_printf(DEBUG_ERROR, "argumant invalid\n");
    1.24 + 		return NULL;