summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;