Skip to content

Commit

Permalink
jansson: Fix reverse logic for JSON boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
gaaf authored and henningw committed Feb 5, 2019
1 parent 684da61 commit 0125c1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/jansson/jansson_utils.c
Expand Up @@ -45,7 +45,7 @@ int jansson_to_val(pv_value_t* val, char** freeme, json_t* v) {
val->rs.len = strlen(value);
val->flags = PV_VAL_STR;
}else if(json_is_boolean(v)) {
val->ri = json_is_true(v) ? 0 : 1;
val->ri = json_is_true(v) ? 1 : 0;
val->flags = PV_TYPE_INT|PV_VAL_INT;
}else if(json_is_real(v)) {
char* value = NULL;
Expand Down

0 comments on commit 0125c1c

Please sign in to comment.