summaryrefslogtreecommitdiff
path: root/tipc
diff options
context:
space:
mode:
authorStephen Hemminger <stephen@networkplumber.org>2022-01-11 09:54:35 -0800
committerDavid Ahern <dsahern@kernel.org>2022-01-26 10:19:08 -0700
commitc02488786f6dff1965fb90b971628a315cc6f359 (patch)
treef1dd51e51424dd813e756421e7bfe02002bf70f6 /tipc
parent371c13e8f22fd37f4c5b7b5c4cdf411b2bbb2260 (diff)
downloadiproute2-c02488786f6dff1965fb90b971628a315cc6f359.tar.gz
tipc: fix clang warning about empty format string
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>
Diffstat (limited to 'tipc')
-rw-r--r--tipc/link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tipc/link.c b/tipc/link.c
index 9994ada2..53f49c89 100644
--- a/tipc/link.c
+++ b/tipc/link.c
@@ -332,7 +332,7 @@ static int _show_link_stat(const char *name, struct nlattr *attrs[],
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");