Fix atspi_text_get_bounded_ranges
authorMike Gorse <mgorse@suse.com>
Wed, 20 Nov 2013 20:44:45 +0000 (14:44 -0600)
committerMike Gorse <mgorse@suse.com>
Wed, 20 Nov 2013 20:44:45 +0000 (14:44 -0600)
atspi/atspi-text.c
dbind/dbind-any.c

index 645543a..67510ea 100644 (file)
@@ -753,7 +753,7 @@ atspi_text_get_bounded_ranges (AtspiText *obj,
   dbus_int32_t d_x = x, d_y = y, d_width = width, d_height = height;
   dbus_uint32_t d_type = type;
   dbus_uint32_t d_clipTypeX = clipTypeX, d_clipTypeY = clipTypeY;
-  GArray *range_seq;
+  GArray *range_seq = NULL;
 
   g_return_val_if_fail (obj != NULL, NULL);
 
index aa54479..fdde7b6 100644 (file)
@@ -640,6 +640,10 @@ dbind_any_demarshal (DBusMessageIter *iter,
         (*type)++;
 
         break;
+    case DBUS_TYPE_VARIANT:
+        /* skip; unimplemented for now */
+        (*type)++;
+        break;
     }
     case DBUS_TYPE_STRUCT:
     case DBUS_TYPE_DICT_ENTRY: