From 7a3d37507332ee57993ab0822dc111c448cd2401 Mon Sep 17 00:00:00 2001
From: shenxiangwei <shenxiangwei1@huawei.com>
Date: Thu, 8 Dec 2022 09:07:43 +0800
Subject: [PATCH] fix core dump problem

---
 src/programs/pkcheck.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/programs/pkcheck.c b/src/programs/pkcheck.c
index 768525c..ea811b1 100644
--- a/src/programs/pkcheck.c
+++ b/src/programs/pkcheck.c
@@ -554,7 +554,7 @@ main (int argc, char *argv[])
     {
       g_printerr ("Error checking for authorization %s: %s\n",
                   action_id,
-                  error->message);
+                  error ? error->message : "");
       ret = 127;
       goto out;
     }
-- 
2.33.0

