Fix crash fetching error when retrieving a property
authorMike Gorse <mgorse@suse.com>
Sat, 17 Mar 2012 17:12:37 +0000 (12:12 -0500)
committerMike Gorse <mgorse@suse.com>
Sat, 17 Mar 2012 17:12:37 +0000 (12:12 -0500)
atspi/atspi-misc.c

index e80ec635075b1892e879bc5a16a0efb5b98b393c..26e1f3a1d72e52abc78b0a53c1309e53013c0fa5 100644 (file)
@@ -1118,8 +1118,8 @@ _atspi_dbus_get_property (gpointer obj, const char *interface, const char *name,
 
   if (dbus_message_get_type (reply) == DBUS_MESSAGE_TYPE_ERROR)
   {
-    const char *err;
-    dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &err, DBUS_TYPE_INVALID);
+    const char *err = NULL;
+    dbus_message_get_args (reply, NULL, DBUS_TYPE_STRING, &err, DBUS_TYPE_INVALID);
     if (err)
       g_set_error_literal (error, ATSPI_ERROR, ATSPI_ERROR_IPC, err);
     goto done;