Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Allow 1 for boolean

  • Loading branch information...
commit fd6079175e6499b9f328a4741ef6009813301db3 1 parent bbc11c6
@bapt bapt authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  libpkg/pkg_config.c
View
2  libpkg/pkg_config.c
@@ -419,12 +419,14 @@ pkg_config_bool(pkg_config_key key, bool *val)
}
if (c[key].val != NULL && (
+ strcmp(c[key].val, "1") == 0 ||
strcasecmp(c[key].val, "yes") == 0 ||
strcasecmp(c[key].val, "true") == 0 ||
strcasecmp(c[key].val, "on") == 0)) {
*val = true;
}
else if (c[key].val == NULL && c[key].def != NULL && (
+ strcmp(c[key].val, "1") == 0 ||
strcasecmp(c[key].def, "yes") == 0 ||
strcasecmp(c[key].def, "true") == 0 ||
strcasecmp(c[key].def, "on") == 0)) {

0 comments on commit fd60791

Please sign in to comment.
Something went wrong with that request. Please try again.