From 896f7d3befaf580510a7a15b07ce6d3c6140c882 Mon Sep 17 00:00:00 2001 From: Mike Gorse Date: Fri, 28 Jan 2011 17:46:50 -0600 Subject: Fix most compiler warnings and various miscellaneous problems --- atspi/atspi-text.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'atspi/atspi-text.c') diff --git a/atspi/atspi-text.c b/atspi/atspi-text.c index 9ca2fd8a..81858036 100644 --- a/atspi/atspi-text.c +++ b/atspi/atspi-text.c @@ -107,7 +107,7 @@ atspi_text_get_text (AtspiText *obj, g_return_val_if_fail (obj != NULL, g_strdup ("")); - _atspi_dbus_call (obj, atspi_interface_text, "GetText", error, "ii=>s", start_offset, end_offset, &retval); + _atspi_dbus_call (obj, atspi_interface_text, "GetText", error, "ii=>s", d_start_offset, d_end_offset, &retval); if (!retval) retval = g_strdup (""); @@ -161,10 +161,9 @@ atspi_text_get_attributes (AtspiText *obj, { dbus_int32_t d_offset = offset; dbus_int32_t d_start_offset, d_end_offset; - GHashTable *hash; DBusMessage *reply; DBusMessageIter iter; - GHashTable *ret; + GHashTable *ret = NULL; if (obj == NULL) return NULL; @@ -215,10 +214,9 @@ atspi_text_get_attribute_run (AtspiText *obj, { dbus_int32_t d_offset = offset; dbus_int32_t d_start_offset, d_end_offset; - GHashTable *hash; DBusMessage *reply; DBusMessageIter iter; - GHashTable *ret; + GHashTable *ret = NULL; if (obj == NULL) return NULL; -- cgit v1.2.1