1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

passed pointer could be NULL

svn path=/icecast/trunk/icecast/; revision=7615
This commit is contained in:
Karl Heyes 2004-08-23 19:01:18 +00:00
parent 1fe2325479
commit 079c759e6d

View File

@ -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);