When calling json_print with json only use a NULL instead of
empty string.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: David Ahern <dsahern@kernel.org>
open_json_object(NULL);
print_string(PRINT_ANY, "link", "Link <%s>\n", name);
- print_string(PRINT_JSON, "state", "", NULL);
+ print_string(PRINT_JSON, "state", NULL, NULL);
open_json_array(PRINT_JSON, NULL);
if (attrs[TIPC_NLA_LINK_ACTIVE])
print_string(PRINT_ANY, NULL, " %s", "ACTIVE");