Patrick Williams | 92b42cb | 2022-09-03 06:53:57 -0500 | [diff] [blame^] | 1 | From f0f8cc5ac6f1fa9cb5c98cb0b3688f44c64fa8ee Mon Sep 17 00:00:00 2001 |
| 2 | From: Christian Hesse <mail@eworm.de> |
| 3 | Date: Wed, 19 Jul 2017 14:22:48 +0200 |
| 4 | Subject: [PATCH 1/3] fix return makes integer from pointer without a cast |
| 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-playlist.c | 2 +- |
| 10 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 11 | |
| 12 | diff --git a/src/libmpd-playlist.c b/src/libmpd-playlist.c |
| 13 | index c3c30ec..64c64ea 100644 |
| 14 | --- a/src/libmpd-playlist.c |
| 15 | +++ b/src/libmpd-playlist.c |
| 16 | @@ -780,7 +780,7 @@ int mpd_playlist_load(MpdObj *mi, const char *path) |
| 17 | if(mpd_lock_conn(mi)) |
| 18 | { |
| 19 | debug_printf(DEBUG_ERROR,"lock failed\n"); |
| 20 | - return NULL; |
| 21 | + return MPD_LOCK_FAILED; |
| 22 | } |
| 23 | mpd_sendLoadCommand(mi->connection,path); |
| 24 | mpd_finishCommand(mi->connection); |
| 25 | -- |
| 26 | 2.37.2 |
| 27 | |