X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fmpdclient.c;h=637aef76b8d0ffea6d8d4682c632eba3e67be154;hb=8bfc36da1e7099cb7a1d8d445f967da8e5e3474e;hp=24ac897527270cfc41cd425d3ef76e3919f49004;hpb=293c575568252438d91f7e758285ff75bd08119f;p=ncmpc.git diff --git a/src/mpdclient.c b/src/mpdclient.c index 24ac897..637aef7 100644 --- a/src/mpdclient.c +++ b/src/mpdclient.c @@ -412,8 +412,8 @@ mpdclient_cmd_add_path(struct mpdclient *c, const gchar *path_utf8) if (connection == NULL) return false; - mpd_send_add(connection, path_utf8); - return mpdclient_finish_command(c); + return mpd_send_add(connection, path_utf8)? + mpdclient_finish_command(c) : false; } bool