summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2006-04-17 04:13:25 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2006-04-17 04:13:25 +0000
commit266c8a5f10089a02e41d23b6ce782b491a287843 (patch)
tree452aeec55d63f5269e759570563684e283ccb525
parent69e7fc8db1eed8afdc32d96327ffe8ed6a1237e4 (diff)
downloadzenity-266c8a5f10089a02e41d23b6ce782b491a287843.tar.gz
don't ignore return value from g_renew() (Fixes bug #338038). Patch from
2006-04-16 Lucas Rocha <lucasr@gnome.org> * src/tree.c (zenity_tree_extract_column_indexes): don't ignore return value from g_renew() (Fixes bug #338038). Patch from Behdad Esfahbod <gnome@behdad.org>.
-rw-r--r--ChangeLog7
-rw-r--r--src/tree.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 27c3c9f..2729bdf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-04-16 Lucas Rocha <lucasr@gnome.org>
+
+ * src/tree.c (zenity_tree_extract_column_indexes):
+ don't ignore return value from g_renew() (Fixes
+ bug #338038). Patch from Behdad Esfahbod
+ <gnome@behdad.org>.
+
2006-04-10 Lucas Rocha <lucasr@gnome.org>
* configure.in: post release version bump.
diff --git a/src/tree.c b/src/tree.c
index b3bb977..0273e55 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -671,7 +671,7 @@ zenity_tree_extract_column_indexes (char *indexes, int n_columns)
if (index > 0 && index <= n_columns) {
result[j] = index;
j++;
- g_renew (gint, result, j + 1);
+ result = g_renew (gint, result, j + 1);
}
}
result[j] = 0;