https://scan7.coverity.com:8443/reports.htm#v10205/p10016/fileInstanceId=8899&defectInstanceId=3735&mergedDefectId=591272
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
pa_raop_client* pa_raop_client_new(pa_core *core, const char* host) {
pa_parsed_address a;
- pa_raop_client* c = pa_xnew0(pa_raop_client, 1);
+ pa_raop_client* c;
pa_assert(core);
pa_assert(host);
if (pa_parse_address(host, &a) < 0 || a.type == PA_PARSED_ADDRESS_UNIX)
return NULL;
+ c = pa_xnew0(pa_raop_client, 1);
c->core = core;
c->fd = -1;