]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
sysdeps-win: Fix autolaunch: regression on Windows
authorThomas Sondergaard <thomas.sondergaard@mi.medical.canon>
Sat, 6 Apr 2024 17:29:15 +0000 (19:29 +0200)
committerThomas Sondergaard <thomas@sondergaard.cc>
Sat, 6 Apr 2024 19:12:53 +0000 (21:12 +0200)
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

index d44dc0a97019ef823fdf6f61f49d9d7594b24890..e8fb78da6cd964696d5fb2c0705cc7cbe43ef14c 100644 (file)
@@ -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