projects
/
ympd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c3ded1
)
outputs: clear possible error
author
Kurt Van Dijck
<dev.kurt@vandijck-laurijssen.be>
Fri, 1 May 2015 22:07:37 +0000
(
00:07
+0200)
committer
Kurt Van Dijck
<dev.kurt@vandijck-laurijssen.be>
Fri, 1 May 2015 22:07:37 +0000
(
00:07
+0200)
src/mpd_client.c
patch
|
blob
|
history
diff --git
a/src/mpd_client.c
b/src/mpd_client.c
index
654dced
..
d61e82f
100644
(file)
--- a/
src/mpd_client.c
+++ b/
src/mpd_client.c
@@
-465,7
+465,10
@@
int mpd_put_outputs(char *buffer, int names)
mpd_output_get_id(out), mpd_output_get_enabled(out));
mpd_output_free(out);
}
- mpd_response_finish(mpd.conn);
+ if (!mpd_response_finish(mpd.conn)) {
+ mpd_connection_clear_error(mpd.conn);
+ return NULL;
+ }
str += snprintf(str, strend-str, " }}");
return str-buffer;
}