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

passed pointer could be NULL

svn path=/icecast/trunk/icecast/; revision=7615
parent 1fe23254
......@@ -146,6 +146,7 @@ void client_set_queue (client_t *client, refbuf_t *refbuf)
refbuf_t *to_release = client->refbuf;
client->refbuf = refbuf;
if (refbuf)
refbuf_addref (client->refbuf);
client->pos = 0;
if (to_release)
......
Supports Markdown
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