From cdf9fd02d22e81b92046f42d52db01b5a1bd79c7 Mon Sep 17 00:00:00 2001 From: Yiyang Fei Date: Wed, 27 Apr 2016 08:10:06 -0700 Subject: [PATCH] Fix crash in test-spawn unit test app on Windows. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=95160 Reviewed-by: Simon McVittie --- dbus/dbus-spawn-win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-spawn-win.c b/dbus/dbus-spawn-win.c index c58bf3cd3..804aa4269 100644 --- a/dbus/dbus-spawn-win.c +++ b/dbus/dbus-spawn-win.c @@ -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 (); -- 2.47.3