From 73b574bd2195b07a5a97eabb2821fc466a3da2c9 Mon Sep 17 00:00:00 2001 From: Thomas Sondergaard Date: Sat, 6 Apr 2024 19:29:15 +0200 Subject: [PATCH] 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 --- dbus/dbus-sysdeps-win.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.47.3