From: Stephen Hemminger Date: Tue, 11 Jan 2022 17:54:35 +0000 (-0800) Subject: tipc: fix clang warning about empty format string X-Git-Tag: v5.18.0~62^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c02488786f6dff1965fb90b971628a315cc6f359;p=thirdparty%2Fiproute2.git 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 Signed-off-by: David Ahern --- diff --git a/tipc/link.c b/tipc/link.c index 9994ada2a..53f49c893 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");