Fix static analysis issues 22/277222/1
authorjusung <jusung07.son@samsung.com>
Mon, 4 Jul 2022 02:46:11 +0000 (11:46 +0900)
committerjusung <jusung07.son@samsung.com>
Mon, 4 Jul 2022 02:46:11 +0000 (11:46 +0900)
 - FORWARD_NULL

Change-Id: I3ec5b584ee099cdb8a142e1e59cf53f007f71edb
Signed-off-by: jusung <jusung07.son@samsung.com>
daemon/dbus.c

index bd47c00..4ae919c 100644 (file)
@@ -67,7 +67,7 @@ static void __bus_get(GObject *source_object, GAsyncResult *res,
 
        conn = g_bus_get_finish(res, &err);
        if (!conn) {
-               bxt_err("g_bus_get_sync() is failed. %s", err->message);
+               bxt_err("g_bus_get_sync() is failed. %s", err ? err->message : "");
                g_error_free(err);
                return;
        }