Fix coverity issue 70/245170/1 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.113248 accepted/tizen/6.0/unified/hotfix/20201103.001132 accepted/tizen/unified/20201005.101354 submit/tizen/20201005.072910 submit/tizen_6.0/20201029.205105 submit/tizen_6.0_hotfix/20201102.192505 submit/tizen_6.0_hotfix/20201103.114805 tizen_6.0.m2_release
authorWootak Jung <wootak.jung@samsung.com>
Mon, 5 Oct 2020 05:26:03 +0000 (14:26 +0900)
committerWootak Jung <wootak.jung@samsung.com>
Mon, 5 Oct 2020 05:26:15 +0000 (14:26 +0900)
Change-Id: I36bed33cad8cd25aaf83e9f6882296d7c2a74030
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
module/src/callmgr-cooldown.c

index 5c6f62de62a50fbb3de3d16c5c90f6a9d706f1e9..d0e806cec848d16e3af046f31101501eb1d650be 100644 (file)
@@ -95,8 +95,10 @@ static void __callmgr_cooldown_get_cooldown_status(callmgr_cooldown_h handle)
                }
                g_free(status);
        } else {
-               err("g_dbus_connection_call_sync() is failed. (%s)", error->message);
-               g_error_free(error);
+               if (error) {
+                       err("g_dbus_connection_call_sync() is failed. (%s)", error->message);
+                       g_error_free(error);
+               }
        }
 
        g_object_unref(dbus_conn);