Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame] | 1 | From fa3b3b3759986171a85230ba8b53764beafdb37f 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 2/3] fix comparison between pointer and zero character constant |
| 5 | |
| 6 | Upstream-Status: Pending [https://github.com/archlinux/svntogit-packages/tree/packages/libmpd/trunk] |
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 8 | --- |
| 9 | src/libmpd-database.c | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/src/libmpd-database.c b/src/libmpd-database.c |
| 13 | index 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 | -- |
| 26 | 2.37.2 |
| 27 | |