summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2006-04-17 04:11:15 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2006-04-17 04:11:15 +0000
commite97b6eeaebedf82788f7218e1b63d4e6c7478e92 (patch)
tree061c929771d4bcf71b1b9bb2d2c9603fc109af32
parentConvert to use po/LINGUAS. (diff)
downloadzenity-e97b6eeaebedf82788f7218e1b63d4e6c7478e92.tar.gz
zenity-e97b6eeaebedf82788f7218e1b63d4e6c7478e92.tar.bz2
zenity-e97b6eeaebedf82788f7218e1b63d4e6c7478e92.zip
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 3ab614fe..77c18e05 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
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-16 Lucas Rocha <lucasr@gnome.org>
+
* configure.in:
* po/LINGUAS:
diff --git a/src/tree.c b/src/tree.c
index b3bb977c..0273e551 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;
bgstack15