From: John (J5) Palmieri Date: Tue, 15 Jan 2008 20:45:20 +0000 (-0500) Subject: the API contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) X-Git-Tag: dbus-1.1.3~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ba3dc8bf980857e03e0f19713adb918dcab4d15;p=thirdparty%2Fdbus.git the API contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) 2008-01-15 John (J5) Palmieri * patch by Kimmo Hämäläinen * dbus/dbus-spawn.c (_dbus_spawn_async_with_babysitter): the API contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) --- diff --git a/ChangeLog b/ChangeLog index d0020c793..dfa00b178 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-15 John (J5) Palmieri + + * patch by Kimmo Hämäläinen + + * dbus/dbus-spawn.c (_dbus_spawn_async_with_babysitter): the API + contract says sitter_p can be NULL, so let's check it (FDO Bug #12919) + 2008-01-15 John (J5) Palmieri * patch by Kimmo Hämäläinen diff --git a/dbus/dbus-spawn.c b/dbus/dbus-spawn.c index 52d3eef00..ba6e6ddfd 100644 --- a/dbus/dbus-spawn.c +++ b/dbus/dbus-spawn.c @@ -1085,7 +1085,9 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p, _DBUS_ASSERT_ERROR_IS_CLEAR (error); - *sitter_p = NULL; + if (sitter_p != NULL) + *sitter_p = NULL; + sitter = NULL; sitter = _dbus_babysitter_new ();