Fix crash in test-spawn unit test app on Windows.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=95160
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
This commit is contained in:
Yiyang Fei 2016-04-27 08:10:06 -07:00 committed by Ralf Habacker
parent eaf231b7db
commit cdf9fd02d2

View file

@ -659,7 +659,8 @@ _dbus_spawn_async_with_babysitter (DBusBabysitter **sitter_p,
_DBUS_ASSERT_ERROR_IS_CLEAR (error);
_dbus_assert (argv[0] != NULL);
*sitter_p = NULL;
if (sitter_p != NULL)
*sitter_p = NULL;
PING();
sitter = _dbus_babysitter_new ();