power: initialize local GError 45/269145/1
authorYoungjae Cho <y0.cho@samsung.com>
Mon, 10 Jan 2022 10:21:47 +0000 (19:21 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Mon, 10 Jan 2022 10:21:47 +0000 (19:21 +0900)
Change-Id: I6b6bbba478be5a923ed2dc44f063cfdce9a871a0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/power-internal.c

index 45d22d6..04a6d27 100644 (file)
@@ -127,7 +127,7 @@ int device_power_change_state_wait_done(uint64_t id)
 {
        GDBusConnection *connection;
        GVariant *retgv;
-       GError *err;
+       GError *err = NULL;
        int ret;
 
        connection = g_bus_get_sync(G_BUS_TYPE_SYSTEM, NULL, &err);