Browse code

jansson: Fix another case of inverse boolean logic

Copy-pasto from before the other fix.

Alex Hermann authored on 18/11/2020 00:16:04 • Henning Westerholt committed on 19/11/2020 06:54:01
Showing 1 changed files
... ...
@@ -97,7 +97,7 @@ int jansson_to_xval(sr_xval_t *val, char** freeme, json_t* v) {
97 97
 		val->v.s.len = strlen(value);
98 98
 	}else if(json_is_boolean(v)) {
99 99
 		val->type = SR_XTYPE_INT;
100
-		val->v.i = json_is_true(v) ? 0 : 1;
100
+		val->v.i = json_is_true(v) ? 1 : 0;
101 101
 	}else if(json_is_real(v)) {
102 102
 		char* value = NULL;
103 103
 		if(asprintf(&value, "%.15g", json_real_value(v))<0) {