From 08a43860fbcf474ba6dcdb9960e45df8e6720d39 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Tue, 9 Aug 2016 18:26:56 +0200 Subject: Protect 'orig_len' in |recover_unused_bytes| by DBUS_ENABLE_VERBOSE_MODE Signed-off-by: Thomas Zimmermann --- dbus/dbus-transport.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dbus/dbus-transport.c b/dbus/dbus-transport.c index f573646..155e9e3 100644 --- a/dbus/dbus-transport.c +++ b/dbus/dbus-transport.c @@ -1055,13 +1055,17 @@ recover_unused_bytes (DBusTransport *transport) { const DBusString *bytes; DBusString *buffer; +#ifdef DBUS_ENABLE_VERBOSE_MODE int orig_len; +#endif dbus_bool_t succeeded; _dbus_message_loader_get_buffer (transport->loader, &buffer); +#ifdef DBUS_ENABLE_VERBOSE_MODE orig_len = _dbus_string_get_length (buffer); +#endif _dbus_auth_get_unused_bytes (transport->auth, &bytes); -- 2.7.4