X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=rdma%2Fres.c;h=6003006e98aa43ca32a481240d541f84bbf9c809;hb=6749801b062c7f97fcf2ccebd592579b2a07efc0;hp=97a7b9640185e23505a93fbd695921e20f0ce9cb;hpb=7ad06c82e73c51ac080dc5dce8f5399f8eb70d91;p=mirror_iproute2.git diff --git a/rdma/res.c b/rdma/res.c index 97a7b964..6003006e 100644 --- a/rdma/res.c +++ b/rdma/res.c @@ -161,6 +161,9 @@ void print_comm(struct rd *rd, const char *str, struct nlattr **nla_line) { char tmp[18]; + if (!str) + return; + if (rd->json_output) { /* Don't beatify output in JSON format */ jsonw_string_field(rd->jw, "comm", str);