diff options
Diffstat (limited to 'dbus')
-rw-r--r-- | dbus/dbus-internals.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dbus/dbus-internals.c b/dbus/dbus-internals.c index e90703e4..0fd01c29 100644 --- a/dbus/dbus-internals.c +++ b/dbus/dbus-internals.c @@ -155,6 +155,10 @@ _dbus_verbose (const char *format, static dbus_bool_t verbose = TRUE; static dbus_bool_t initted = FALSE; + /* things are written a bit oddly here so that + * in the non-verbose case we just have the one + * conditional and return immediately. + */ if (!verbose) return; @@ -162,6 +166,8 @@ _dbus_verbose (const char *format, { verbose = getenv ("DBUS_VERBOSE") != NULL; initted = TRUE; + if (!verbose) + return; } va_start (args, format); |