OSDN Git Service

obexd: The function g_dbus_pending_property_error has no return value
authorMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Dec 2012 05:24:26 +0000 (21:24 -0800)
committerMarcel Holtmann <marcel@holtmann.org>
Sun, 30 Dec 2012 05:24:26 +0000 (21:24 -0800)
obexd/client/map.c

index 319d60e..df2b0bf 100644 (file)
@@ -574,10 +574,12 @@ static void set_status(const GDBusPropertyTable *property,
        GObexApparam *apparam;
        char contents[2];
 
-       if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_BOOLEAN)
-               return g_dbus_pending_property_error(id,
+       if (dbus_message_iter_get_arg_type(iter) != DBUS_TYPE_BOOLEAN) {
+               g_dbus_pending_property_error(id,
                                        ERROR_INTERFACE ".InvalidArguments",
                                        "Invalid arguments in method call");
+               return;
+       }
 
        dbus_message_iter_get_basic(iter, &value);