From: Simon McVittie Date: Thu, 14 Jul 2011 17:46:06 +0000 (+0100) Subject: activation-helper: remove unused variable from the real build X-Git-Tag: dbus-1.5.8~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b4e01ab099df34368413ea0f6be86e0f14b99155;p=platform%2Fupstream%2Fdbus.git 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 --- diff --git a/bus/activation-helper.c b/bus/activation-helper.c index b7ea686..7012227 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())