From: Thomas Sondergaard Date: Sat, 6 Apr 2024 17:29:15 +0000 (+0200) Subject: sysdeps-win: Fix autolaunch: regression on Windows X-Git-Tag: dbus-1.15.10~16^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=73b574bd2195b07a5a97eabb2821fc466a3da2c9;p=thirdparty%2Fdbus.git sysdeps-win: Fix autolaunch: regression on Windows Commit f20a05f60f6f included in dbus-1.15.0 broke autolaunch: on Windows. autolaunch_custom_command_line_parameter shall be initalized to null as it is later used in only one place in the code, with this ternary: autolaunch_custom_command_line_parameter ? autolaunch_custom_command_line_parameter : "--session" Closes #503 --- diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index d44dc0a97..e8fb78da6 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -2759,7 +2759,7 @@ static const char *cDBusDaemonMutex = "DBusDaemonMutex"; static const char *cDBusDaemonAddressInfo = "DBusDaemonAddressInfo"; /* custom command line parameter for autolaunching daemon */ -static const char *autolaunch_custom_command_line_parameter = ""; +static const char *autolaunch_custom_command_line_parameter = NULL; /** * Set command line parameters for the dbus daemon to start