From b4e01ab099df34368413ea0f6be86e0f14b99155 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Thu, 14 Jul 2011 18:46:06 +0100 Subject: [PATCH] activation-helper: remove unused variable from the real build It's only used in the test build. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=39231 Reviewed-by: Will Thompson --- bus/activation-helper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bus/activation-helper.c b/bus/activation-helper.c index b7ea6867e..7012227ef 100644 --- a/bus/activation-helper.c +++ b/bus/activation-helper.c @@ -403,12 +403,15 @@ get_correct_parser (BusConfigParser **parser, DBusError *error) { DBusString config_file; dbus_bool_t retval; +#ifdef ACTIVATION_LAUNCHER_TEST const char *test_config_file; +#endif retval = FALSE; - test_config_file = NULL; #ifdef ACTIVATION_LAUNCHER_TEST + test_config_file = NULL; + /* there is no _way_ we should be setuid if this define is set. * but we should be doubly paranoid and check... */ if (getuid() != geteuid()) -- 2.47.3