[at-spi2-core] Fix crash fetching error when retrieving a property



commit 63a0348283282a548c6e3c30a6fd99b23efc3e34
Author: Mike Gorse <mgorse suse com>
Date:   Sat Mar 17 12:12:37 2012 -0500

    Fix crash fetching error when retrieving a property

 atspi/atspi-misc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index e80ec63..26e1f3a 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]