Fix ASSUME_ALWAYS_YES not being parsed properly from config after UCL conversion.

Sponsored by:	EMC / Isilon Storage Division
MFC after:	1 week
This commit is contained in:
Bryan Drewery 2014-03-14 17:37:38 +00:00
parent 97c3a76638
commit 197372c28d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263181

View File

@ -594,6 +594,10 @@ config_parse(ucl_object_t *obj, pkg_conf_file_t conftype)
next);
}
break;
case PKG_CONFIG_BOOL:
temp_config[i].value =
strdup(ucl_object_toboolean(cur) ? "yes" : "no");
break;
default:
/* Normal string value. */
temp_config[i].value = strdup(ucl_object_tostring(cur));