audio/libmpd: actually fix the bug in code instead of masking it

This commit is contained in:
Dima Panov
2023-02-19 17:00:03 +03:00
parent 7e1dfa38cf
commit bfa40b5bbf
2 changed files with 11 additions and 2 deletions
-2
View File
@@ -16,8 +16,6 @@ USE_GNOME= glib20
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
CFLAGS+= -Wno-error=int-conversion
post-patch:
@${REINPLACE_CMD} -e 's,libmpd-1.0\/libmpd,libmpd,' \
${WRKSRC}/src/Makefile.in
@@ -0,0 +1,11 @@
--- src/libmpd-playlist.c.orig 2011-08-17 12:31:47 UTC
+++ 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 0;
}
mpd_sendLoadCommand(mi->connection,path);
mpd_finishCommand(mi->connection);