summaryrefslogtreecommitdiffstats
path: root/tqdbusconnection.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-12-05 01:10:20 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-12-05 01:10:20 -0600
commit15cf9762c93d47d83591a20b32d5a4658023bcaa (patch)
treee014039a64184a622fdd3c69ae0b3899fb42d13b /tqdbusconnection.cpp
parent26e72a7dade3a92007974096eec4ae4f5b074694 (diff)
downloaddbus-1-tqt-15cf9762c93d47d83591a20b32d5a4658023bcaa.tar.gz
dbus-1-tqt-15cf9762c93d47d83591a20b32d5a4658023bcaa.zip
Fix crash on hibernate
Diffstat (limited to 'tqdbusconnection.cpp')
-rw-r--r--tqdbusconnection.cpp2
1 files changed, 1 insertions, 1 deletions
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;