aboutsummaryrefslogtreecommitdiff
path: root/libmpd/0003-fix-comparison.patch
diff options
context:
space:
mode:
authorJay Lanagan <j@lngn.net>2025-09-29 09:51:28 -0400
committerJay Lanagan <j@lngn.net>2025-09-29 09:51:28 -0400
commit9a6af577ce42cb73efc98c09ab1ef6f9e0083153 (patch)
tree883063343f20fe827c5aecdaa40fa9ddde2ecaf2 /libmpd/0003-fix-comparison.patch
parentab119e4809a15d37522b7aea45d55911f8d43ac9 (diff)
downloadcrux-xfce4-9a6af577ce42cb73efc98c09ab1ef6f9e0083153.tar.gz
crux-xfce4-9a6af577ce42cb73efc98c09ab1ef6f9e0083153.zip
xfce4: initial migration
Diffstat (limited to 'libmpd/0003-fix-comparison.patch')
-rw-r--r--libmpd/0003-fix-comparison.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/libmpd/0003-fix-comparison.patch b/libmpd/0003-fix-comparison.patch
new file mode 100644
index 0000000..3472cb5
--- /dev/null
+++ b/libmpd/0003-fix-comparison.patch
@@ -0,0 +1,21 @@
+From f33d4946c9349909d6ddc816d3c7eb81dd342b57 Mon Sep 17 00:00:00 2001
+From: Christian Hesse <mail@eworm.de>
+Date: Wed, 19 Jul 2017 14:40:00 +0200
+Subject: [PATCH 3/3] fix comparison between pointer and zero character constant
+---
+ src/libmpd-database.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/libmpd-database.c b/src/libmpd-database.c
+index 2480d5e..edafc0a 100644
+--- a/src/libmpd-database.c
++++ b/src/libmpd-database.c
+@@ -961,7 +961,7 @@ MpdData * mpd_database_get_directory_recursive(MpdObj *mi, const char *path)
+ debug_printf(DEBUG_WARNING,"not connected\n");
+ return NULL;
+ }
+- if(path == '\0' || path[0] == '\0')
++ if(path == NULL || path[0] == '\0')
+ {
+ debug_printf(DEBUG_ERROR, "argumant invalid\n");
+ return NULL;