After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338038 - g_realloc return value ignored
g_realloc return value ignored
Status: RESOLVED FIXED
Product: zenity
Classification: Core
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Zenity Maintainers
Zenity Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-11 01:00 UTC by Behdad Esfahbod
Modified: 2006-04-17 04:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Behdad Esfahbod 2006-04-11 01:00:33 UTC
tree.c: In function 'zenity_tree_extract_column_indexes':
tree.c:674: warning: ignoring return value of 'g_realloc', declared with attribute warn_unused_result



    if (index > 0 && index <= n_columns) {
      result[j] = index;
      j++;
-     g_renew (gint, result, j + 1);
+     result = g_renew (gint, result, j + 1);
    }
Comment 1 Lucas Rocha 2006-04-17 04:13:40 UTC
Fixed in HEAD and gnome-2-14 branch, thanks!

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>.