Commit 079c759e authored by Karl Heyes's avatar Karl Heyes

passed pointer could be NULL

svn path=/icecast/trunk/icecast/; revision=7615
parent 1fe23254
......@@ -146,7 +146,8 @@ void client_set_queue (client_t *client, refbuf_t *refbuf)
refbuf_t *to_release = client->refbuf;
client->refbuf = refbuf;
refbuf_addref (client->refbuf);
if (refbuf)
refbuf_addref (client->refbuf);
client->pos = 0;
if (to_release)
refbuf_release (to_release);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment