mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
small build fix and a minor issue highlighted by coverity
svn path=/icecast/trunk/icecast/; revision=13798
This commit is contained in:
parent
4b647b9c42
commit
e99eee6c80
@ -1005,8 +1005,9 @@ static void command_list_mounts(client_t *client, int response)
|
||||
}
|
||||
else
|
||||
{
|
||||
xmlDocPtr doc;
|
||||
avl_tree_rlock (global.source_tree);
|
||||
xmlDocPtr doc = admin_build_sourcelist(NULL);
|
||||
doc = admin_build_sourcelist(NULL);
|
||||
avl_tree_unlock (global.source_tree);
|
||||
|
||||
admin_send_response(doc, client, response,
|
||||
|
@ -440,13 +440,13 @@ static void vorbis_set_tag (format_plugin_t *plugin, const char *tag, const char
|
||||
ogg_info->artist = value;
|
||||
change = 1;
|
||||
}
|
||||
if (strcmp (tag, "title") == 0)
|
||||
else if (strcmp (tag, "title") == 0)
|
||||
{
|
||||
free (ogg_info->title);
|
||||
ogg_info->title = value;
|
||||
change = 1;
|
||||
}
|
||||
if (strcmp (tag, "song") == 0)
|
||||
else if (strcmp (tag, "song") == 0)
|
||||
{
|
||||
free (ogg_info->artist);
|
||||
free (ogg_info->title);
|
||||
|
Loading…
Reference in New Issue
Block a user