Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix 1 treated as True for boolean in config
Baptiste Daroussin committed 13 years ago
commit 2d9c90eafb33c18ebd095371bdd0449fdc71a523
parent fd6079175e6499b9f328a4741ef6009813301db3
1 file changed +1 -1
modified libpkg/pkg_config.c
@@ -426,7 +426,7 @@ pkg_config_bool(pkg_config_key key, bool *val)
		*val = true;
	}
	else if (c[key].val == NULL && c[key].def != NULL && (
-
	    strcmp(c[key].val, "1") == 0 ||
+
	    strcmp(c[key].def, "1") == 0 ||
	    strcasecmp(c[key].def, "yes") == 0 ||
	    strcasecmp(c[key].def, "true") == 0 ||
	    strcasecmp(c[key].def, "on") == 0)) {