Consistently return a value - from joerg@netbsd.org
authorPatrick Welche <prlw1@cam.ac.uk>
Fri, 29 Jun 2012 17:07:23 +0000 (18:07 +0100)
committerPatrick Welche <prlw1@cam.ac.uk>
Fri, 29 Jun 2012 17:07:23 +0000 (18:07 +0100)
registryd/deviceeventcontroller.c

index 62dc732..61ab91d 100644 (file)
@@ -1225,11 +1225,11 @@ send_and_allow_reentry (DBusConnection *bus, DBusMessage *message, int timeout,
                                                 "org.freedesktop.DBus.Peer",
                                                 "Ping");
         if (!message)
-          return;
+          return NULL;
         dbus_connection_send_with_reply (bus, message, &pending, -1);
         dbus_message_unref (message);
         if (!pending)
-          return;
+          return NULL;
         bus_name_dup = g_strdup (dest);
         dbus_pending_call_set_notify (pending, reset_hung_process_from_ping,
                                       bus_name_dup, NULL);