dbus: fix issue in which uninitialized variable is used 12/63712/1
authorTaeyoung Kim <ty317.kim@samsung.com>
Fri, 25 Mar 2016 09:08:05 +0000 (18:08 +0900)
committerTaeyoung Kim <ty317.kim@samsung.com>
Fri, 25 Mar 2016 09:08:05 +0000 (18:08 +0900)
Change-Id: I1002489599d25f222b9efd09d04ac4bf9caf3e16
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/dbus.c

index c83ea29..41faabd 100644 (file)
@@ -150,7 +150,7 @@ int dbus_method_sync(const char *dest, const char *path,
                        _E("g_dbus_proxy_call_sync error : %s-%s",
                                        interface, method);
                        g_object_unref(proxy);
-                       return result;
+                       return -EPERM;
                }
                _E("g_dbus_proxy_call_sync error : %s-%s (%d-%s)",
                                interface, method, err->code, err->message);