Browse Source

fixed json_null => NULL (#1193)

The json_null should be C NULL.
pull/1195/head
Kim 7 years ago
committed by Max Lv
parent
commit
bf14944490
1 changed files with 1 additions and 1 deletions
  1. 2
      src/jconf.c

2
src/jconf.c

@ -46,7 +46,7 @@ to_string(const json_value *value)
} else if (value->type == json_integer) { } else if (value->type == json_integer) {
return strdup(ss_itoa(value->u.integer)); return strdup(ss_itoa(value->u.integer));
} else if (value->type == json_null) { } else if (value->type == json_null) {
return "null";
return NULL;
} else { } else {
LOGE("%d", value->type); LOGE("%d", value->type);
FATAL("Invalid config format."); FATAL("Invalid config format.");

Loading…
Cancel
Save