1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-23 06:25:24 +00:00

master_password can be NULL

This commit is contained in:
greenbender 2016-02-25 14:04:09 +11:00 committed by Marvin Scholz
parent 79fb9cbbf4
commit 212b7a12da

View File

@ -1621,7 +1621,8 @@ static void _parse_master(xmlDocPtr doc,
master->on_demand = configuration->on_demand;
master->server = (char *) xmlCharStrdup("127.0.0.1");
master->username = (char *) xmlCharStrdup(configuration->master_username);
master->password = (char *) xmlCharStrdup(configuration->master_password);
if (configuration->master_password)
master->password = (char *) xmlCharStrdup(configuration->master_password);
do {
if (node == NULL)