mirror of
https://github.com/SuperBFG7/ympd
synced 2024-11-22 21:07:18 +00:00
outputs: clear possible error
This commit is contained in:
parent
0c3ded1cf3
commit
c3ddc8318b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user