summaryrefslogtreecommitdiffstats
path: root/lib/services/dbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/services/dbus.c')
-rw-r--r--lib/services/dbus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/services/dbus.c b/lib/services/dbus.c
index f052c0a..8a517d2 100644
--- a/lib/services/dbus.c
+++ b/lib/services/dbus.c
@@ -594,6 +594,8 @@ handle_query_result(DBusMessage *reply, struct property_query *data)
DBusMessageIter variant_iter;
DBusBasicValue value;
+ dbus_error_init(&error);
+
// First, check if the reply contains an error
if (pcmk_dbus_find_error((void*)&error, reply, &error)) {
crm_err("DBus query for %s property '%s' failed: %s",