summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Szyndela <adrian.s@samsung.com>2019-03-18 15:05:19 +0100
committerAdrian Szyndela <adrian.s@samsung.com>2019-03-18 15:35:55 +0100
commit19cebb526d4cce798d2a28f693b133210c0db357 (patch)
treeca4d3ba97265288cd9208fd801209ed991d4298a
parent889b51bfda7138362580bf9409110a50851728cd (diff)
downloaddbus-19cebb526d4cce798d2a28f693b133210c0db357.tar.gz
dbus-19cebb526d4cce798d2a28f693b133210c0db357.tar.bz2
dbus-19cebb526d4cce798d2a28f693b133210c0db357.zip
kdbus: add assert for non-NULL member
Trying to call an unnammed method on org.freedesktop.DBus is considered a programming error. This detects such errors. Change-Id: Ic341df0eef0e7ef5ab8234aacc2c256c295327c3
-rwxr-xr-xdbus/dbus-transport-kdbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/dbus-transport-kdbus.c b/dbus/dbus-transport-kdbus.c
index c0088fc3..cb8e1b93 100755
--- a/dbus/dbus-transport-kdbus.c
+++ b/dbus/dbus-transport-kdbus.c
@@ -2492,6 +2492,8 @@ capture_org_freedesktop_DBus (DBusTransportKdbus *transport,
DBusError error;
const char *member = dbus_message_get_member (message);
+ _dbus_assert (member != NULL);
+
dbus_error_init (&error);
if (!strcmp (member, "Hello"))