]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - sys-utils/lscpu.c
tests: update lscpu output
[thirdparty/util-linux.git] / sys-utils / lscpu.c
index 32f989e381c39015120e62ef499095abad687191..4e2f671f2e55b3b2ca8ad4e32a100549b1bb7618 100644 (file)
@@ -859,7 +859,8 @@ print_summary_cputype(struct lscpu_cxt *cxt,
                     struct libscols_table *tb,
                     struct libscols_line *sec)
 {
-       sec = add_summary_s(tb, sec, _("Model name:"), ct->modelname ? ct->modelname : "-");
+       if (ct->modelname)
+               sec = add_summary_s(tb, sec, _("Model name:"), ct->modelname ? ct->modelname : "-");
        if (ct->bios_modelname)
                add_summary_s(tb, sec, _("BIOS Model name:"), ct->bios_modelname);
        if (ct->bios_family)