]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix no-X11 build after d847b5f6ae994c408c166ed51752ed9f550df600
authorAlex Richardson <arichardson.kde@gmail.com>
Sat, 16 Apr 2022 16:04:22 +0000 (16:04 +0000)
committerAlex Richardson <arichardson.kde@gmail.com>
Sat, 16 Apr 2022 16:04:57 +0000 (16:04 +0000)
Since that commit the error variable is used in all cases not only the
DBUS_BUILD_X11 #ifdef branches.

Fixes: https://gitlab.freedesktop.org/dbus/dbus/-/issues/392
tools/dbus-launch.c

index 6b9fbe075904e520813ed786ccdf4b897d851ffa..5637e4146f344dcccd5aa7e5db21f0b1b1e5d8b0 100644 (file)
@@ -846,9 +846,7 @@ main (int argc, char **argv)
   dbus_bool_t existing_bus_supported = FALSE;
   DBusString existing_bus;
   const char *error_str;
-#ifdef DBUS_BUILD_X11
   DBusError error = DBUS_ERROR_INIT;
-#endif
 
   exit_with_session = FALSE;
   config_file = NULL;