summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 293c575)
raw | patch | inline | side by side (parent: 293c575)
author | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Sat, 29 Oct 2011 13:19:02 +0000 (15:19 +0200) | ||
committer | Jonathan Neuschäfer <j.neuschaefer@gmx.net> | |
Wed, 2 Nov 2011 14:36:29 +0000 (15:36 +0100) |
src/mpdclient.c | patch | blob | history |
diff --git a/src/mpdclient.c b/src/mpdclient.c
index 24ac897527270cfc41cd425d3ef76e3919f49004..637aef76b8d0ffea6d8d4682c632eba3e67be154 100644 (file)
--- a/src/mpdclient.c
+++ b/src/mpdclient.c
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