diff options
author | Adrian Szyndela <adrian.s@samsung.com> | 2019-03-18 15:05:19 +0100 |
---|---|---|
committer | Adrian Szyndela <adrian.s@samsung.com> | 2019-03-18 15:35:55 +0100 |
commit | 19cebb526d4cce798d2a28f693b133210c0db357 (patch) | |
tree | ca4d3ba97265288cd9208fd801209ed991d4298a | |
parent | 889b51bfda7138362580bf9409110a50851728cd (diff) | |
download | dbus-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-x | dbus/dbus-transport-kdbus.c | 2 |
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")) |