[PATCH RFC 07/14] lkcd_v2_v3: address of an array always evaluates to true

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Oleksandr Natalenko <oleksandr@xxxxxxxxxx>
---
 lkcd_v2_v3.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lkcd_v2_v3.c b/lkcd_v2_v3.c
index 8635a7b..94a3918 100644
--- a/lkcd_v2_v3.c
+++ b/lkcd_v2_v3.c
@@ -307,7 +307,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");
         lkcd_print("         dh_time: %s\n",
                         strip_linefeeds(ctime(&(dh->dh_time.tv_sec))));
-- 
2.14.3

--
Crash-utility mailing list
Crash-utility@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/crash-utility



[Index of Archives]     [Fedora Development]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]

 

Powered by Linux