summaryrefslogtreecommitdiff
path: root/tools/dbus-launch.c
diff options
context:
space:
mode:
authorAlex Richardson <arichardson.kde@gmail.com>2022-04-16 16:04:22 +0000
committerAlex Richardson <arichardson.kde@gmail.com>2022-04-16 16:04:57 +0000
commit6c1c7e539f17099e6f2b624cdae160fd8138a8fb (patch)
treea43754756116978fc25f6d20038b2c06510de3a8 /tools/dbus-launch.c
parente47891864bfd0a308db9b236acf93bba025c85b9 (diff)
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
Diffstat (limited to 'tools/dbus-launch.c')
-rw-r--r--tools/dbus-launch.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/dbus-launch.c b/tools/dbus-launch.c
index 6b9fbe07..5637e414 100644
--- a/tools/dbus-launch.c
+++ b/tools/dbus-launch.c
@@ -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;