mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-05-06 08:08:05 +02:00
the API contract says sitter_p can be NULL, so let's check it (FDO Bug #12919)
2008-01-15 John (J5) Palmieri <johnp@redhat.com> * patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com> * 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)
This commit is contained in:
parent
c8a9cf8103
commit
7ba3dc8bf9
2 changed files with 10 additions and 1 deletions
|
|
@ -1,3 +1,10 @@
|
|||
2008-01-15 John (J5) Palmieri <johnp@redhat.com>
|
||||
|
||||
* patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
|
||||
|
||||
* 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 <johnp@redhat.com>
|
||||
|
||||
* patch by Kimmo Hämäläinen <kimmo dot hamalainen at nokia dot com>
|
||||
|
|
|
|||
|
|
@ -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 ();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue