[at-spi2-core] Fix uninitialized variable in get_index_in_parent
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Fix uninitialized variable in get_index_in_parent
- Date: Wed, 1 Dec 2010 22:31:08 +0000 (UTC)
commit 7b4f66e271f2ce7d62228a4810c9e8dae7675598
Author: Mike Gorse <mgorse novell com>
Date: Wed Dec 1 13:57:49 2010 -0500
Fix uninitialized variable in get_index_in_parent
atspi/atspi-accessible.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index 4d2ea4b..81c6749 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -368,7 +368,7 @@ gint
atspi_accessible_get_index_in_parent (AtspiAccessible *obj, GError **error)
{
GList *l;
- gint i;
+ gint i = 0;
g_return_val_if_fail (obj != NULL, -1);
if (!obj->accessible_parent) return -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]