diff options
author | Tim Janik <timj@gtk.org> | 1999-08-15 00:58:48 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1999-08-15 00:58:48 +0000 |
commit | 9c53053abe8af7482dbf7db52a2313cad4b11478 (patch) | |
tree | 05cf114abdc75287dfd1d54f2c4b4a186386b164 /glib.h | |
parent | 1c6c7f748956caae98a79be89120c537c2032b7e (diff) | |
download | glib-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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |