[at-spi2-core] Add default values for atspi_hyperlink_get_index_range variables



commit 45432a51a027ae7e1ee8fa2643105622e5f23ed5
Author: Patryk Kaczmarek <patryk k samsung com>
Date:   Mon Sep 28 14:34:12 2015 +0200

    Add default values for atspi_hyperlink_get_index_range variables
    
      If there are no default values, after unsuccessful dbus call,
        some random values of start_offset and end_offset are set.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=755727

 atspi/atspi-hyperlink.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-hyperlink.c b/atspi/atspi-hyperlink.c
index 36763e3..80f8a54 100644
--- a/atspi/atspi-hyperlink.c
+++ b/atspi/atspi-hyperlink.c
@@ -133,7 +133,8 @@ atspi_hyperlink_get_object (AtspiHyperlink *obj, gint i, GError **error)
 AtspiRange *
 atspi_hyperlink_get_index_range (AtspiHyperlink *obj, GError **error)
 {
-  dbus_int32_t d_start_offset, d_end_offset;
+  dbus_int32_t d_start_offset = -1;
+  dbus_int32_t d_end_offset = -1;
   AtspiRange *ret = g_new (AtspiRange, 1);
 
   ret->start_offset = ret->end_offset = -1;


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