[PATCH] Assert that watch is not NULL in dbus_watch_handle

Christian Dywan christian.dywan at lanedo.com
Thu Sep 23 05:38:15 PDT 2010


---
 dbus/dbus-watch.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dbus/dbus-watch.c b/dbus/dbus-watch.c
index 5acb202..b718937 100644
--- a/dbus/dbus-watch.c
+++ b/dbus/dbus-watch.c
@@ -647,6 +647,8 @@ dbus_bool_t
 dbus_watch_handle (DBusWatch    *watch,
                    unsigned int  flags)
 {
+  _dbus_assert (watch != NULL);
+
 #ifndef DBUS_DISABLE_CHECKS
   if (watch->fd < 0 || watch->flags == 0)
     {
-- 
1.7.2.3


--MP_/Psf=0BJz9NrzboccWsM1DdN--


More information about the dbus mailing list