Signed-off-by: Oleksandr Natalenko <oleksandr(a)redhat.com>
---
lkcd_v8.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lkcd_v8.c b/lkcd_v8.c
index 1322250..29966c8 100644
--- a/lkcd_v8.c
+++ b/lkcd_v8.c
@@ -542,7 +542,7 @@ dump_header_only:
lkcd_print(" dh_num_pages: ");
lkcd_print(BITS32() ? "%ld\n" : "%d\n", dh->dh_num_pages);
lkcd_print(" dh_panic_string: %s%s", dh->dh_panic_string,
- dh && dh->dh_panic_string &&
+ dh && *dh->dh_panic_string &&
strstr(dh->dh_panic_string, "\n") ? "" : "\n");
tv.tv_sec = dh->dh_time.tv_sec;
lkcd_print(" dh_time: %s\n",
--
2.14.3