summaryrefslogtreecommitdiff
path: root/glib.h
diff options
context:
space:
mode:
authorTim Janik <timj@gtk.org>1999-08-15 00:58:48 +0000
committerTim Janik <timj@src.gnome.org>1999-08-15 00:58:48 +0000
commit9c53053abe8af7482dbf7db52a2313cad4b11478 (patch)
tree05cf114abdc75287dfd1d54f2c4b4a186386b164 /glib.h
parent1c6c7f748956caae98a79be89120c537c2032b7e (diff)
downloadglib-9c53053abe8af7482dbf7db52a2313cad4b11478.tar.gz
eliminate memset() call, since string.h has not neccessarily been included
Sun Aug 15 02:47:14 1999 Tim Janik <timj@gtk.org> * glib.h (g_trash_stack_pop): eliminate memset() call, since string.h has not neccessarily been included prior to glib.h. Mon Aug 2 21:03:10 1999 Tim Janik <timj@gtk.org> * configure.in: added --enable-msg-prefix option. * gmessages.c (g_log_default_handler): feature "prg_name (pid:%u): " if --enable-msg-prefix was selected (use "(process:%u): " if g_get_prgname () returns NULL, along the lines of g_on_error_query).
Diffstat (limited to 'glib.h')
-rw-r--r--glib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/glib.h b/glib.h
index 72e6d68da..f135baefd 100644
--- a/glib.h
+++ b/glib.h
@@ -1687,7 +1687,10 @@ g_trash_stack_pop (GTrashStack **stack_p)
if (data)
{
*stack_p = data->next;
- memset (data, 0, sizeof (GTrashStack));
+ /* NULLify private pointer here, most platforms store NULL as
+ * subsequent 0 bytes
+ */
+ data->next = NULL;
}
return data;