Skip to content

Commit 4840331

Browse files
committed
master_password can be NULL
1 parent b3d184e commit 4840331

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cfgfile.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1612,7 +1612,8 @@ static void _parse_master(xmlDocPtr doc,
16121612
master->on_demand = configuration->on_demand;
16131613
master->server = (char *) xmlCharStrdup("127.0.0.1");
16141614
master->username = (char *) xmlCharStrdup(configuration->master_username);
1615-
master->password = (char *) xmlCharStrdup(configuration->master_password);
1615+
if (configuration->master_password)
1616+
master->password = (char *) xmlCharStrdup(configuration->master_password);
16161617

16171618
do {
16181619
if (node == NULL)

0 commit comments

Comments
 (0)