summaryrefslogtreecommitdiffstats
path: root/src/plist.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plist.c')
-rw-r--r--src/plist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plist.c b/src/plist.c
index 5ea6c12..bcd212c 100644
--- a/src/plist.c
+++ b/src/plist.c
@@ -1495,9 +1495,9 @@ uint8_t plist_dict_get_bool(plist_t dict, const char *key)
case PLIST_STRING:
strval = plist_get_string_ptr(node, NULL);
if (strval) {
- if (strcmp(strval, "true")) {
+ if (strcmp(strval, "true") == 0) {
bval = 1;
- } else if (strcmp(strval, "false")) {
+ } else if (strcmp(strval, "false") == 0) {
bval = 0;
} else {
PLIST_ERR("%s: invalid string '%s' for string to boolean conversion\n", __func__, strval);