| From f0f8cc5ac6f1fa9cb5c98cb0b3688f44c64fa8ee Mon Sep 17 00:00:00 2001 |
| From: Christian Hesse <mail@eworm.de> |
| Date: Wed, 19 Jul 2017 14:22:48 +0200 |
| Subject: [PATCH 1/3] fix return makes integer from pointer without a cast |
| |
| Upstream-Status: Pending [https://github.com/archlinux/svntogit-packages/tree/packages/libmpd/trunk] |
| Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| --- |
| src/libmpd-playlist.c | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/src/libmpd-playlist.c b/src/libmpd-playlist.c |
| index c3c30ec..64c64ea 100644 |
| --- a/src/libmpd-playlist.c |
| +++ b/src/libmpd-playlist.c |
| @@ -780,7 +780,7 @@ int mpd_playlist_load(MpdObj *mi, const char *path) |
| if(mpd_lock_conn(mi)) |
| { |
| debug_printf(DEBUG_ERROR,"lock failed\n"); |
| - return NULL; |
| + return MPD_LOCK_FAILED; |
| } |
| mpd_sendLoadCommand(mi->connection,path); |
| mpd_finishCommand(mi->connection); |
| -- |
| 2.37.2 |
| |