Browse files

another json pre10 issue to work around

  • Loading branch information...
1 parent a8bec22 commit 23198fb692928c6d13946216c49f11cc6b7f2e4c @paulrho paulrho committed Jun 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bti.c
View
2 bti.c
@@ -550,7 +550,7 @@ static void json_parse(json_object * jobj, int nestlevel) {
nestlevel++;
enum json_type type;
json_object_object_foreach_alt(jobj, key, val) {
- type = json_object_get_type(val);
+ if (val) type = json_object_get_type(val); else type=json_type_null; /* work around pre10 */
if (debug) for (i=0; i<nestlevel; ++i) printf(" ");
if (debug) printf("key %-34s ",key);
if (debug) for (i=0; i<8-nestlevel; ++i) printf(" ");

0 comments on commit 23198fb

Please sign in to comment.