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,7 +146,8 @@ void client_set_queue (client_t *client, refbuf_t *refbuf) ...@@ -146,7 +146,8 @@ void client_set_queue (client_t *client, refbuf_t *refbuf)
refbuf_t *to_release = client->refbuf; refbuf_t *to_release = client->refbuf;
client->refbuf = refbuf; client->refbuf = refbuf;
refbuf_addref (client->refbuf); if (refbuf)
refbuf_addref (client->refbuf);
client->pos = 0; client->pos = 0;
if (to_release) if (to_release)
refbuf_release (to_release); refbuf_release (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