From 15cf9762c93d47d83591a20b32d5a4658023bcaa Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 5 Dec 2012 01:10:20 -0600 Subject: [PATCH] Fix crash on hibernate --- tqdbusconnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tqdbusconnection.cpp b/tqdbusconnection.cpp index 0961a18..1af78f5 100644 --- a/tqdbusconnection.cpp +++ b/tqdbusconnection.cpp @@ -296,7 +296,7 @@ TQT_DBusMessage TQT_DBusConnection::sendWithReply(const TQT_DBusMessage &message // and the dbus_error_is_set() check cannot be moved inside fromDBusMessage() without breaking the API and ABI. if (!dbus_error_is_set(&d->error)) { ret.d->error = TQT_DBusError(); - *error = TQT_DBusError(); + if (error) *error = TQT_DBusError(); } return ret;