Commit e99eee6c authored by Karl Heyes's avatar Karl Heyes

small build fix and a minor issue highlighted by coverity

svn path=/icecast/trunk/icecast/; revision=13798
parent 4b647b9c
......@@ -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);
......
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