1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-22 04:15:54 -04:00

small build fix and a minor issue highlighted by coverity

svn path=/icecast/trunk/icecast/; revision=13798
This commit is contained in:
Karl Heyes 2007-09-14 03:01:17 +00:00
parent 4b647b9c42
commit e99eee6c80
2 changed files with 4 additions and 3 deletions

View File

@ -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,

View File

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