diff options
author | Jeff Garzik <jgarzik@pobox.com> | 1999-01-21 22:29:58 +0000 |
---|---|---|
committer | Jeff Garzik <jgarzik@src.gnome.org> | 1999-01-21 22:29:58 +0000 |
commit | ba58aa201d9b9290b71a182c6c7591882608a8b5 (patch) | |
tree | 316515162f8c49cfd175ed4e3efee3f714a67aac /gtk/gtkbox.c | |
parent | cb2eb293e68a30e13fbd05aebceb237a96b6297e (diff) | |
download | gtk+-ba58aa201d9b9290b71a182c6c7591882608a8b5.tar.gz |
Check args for NULL. (gtk_selection_default_handler): Replace manual list
Thu Jan 21 17:13:12 1999 Jeff Garzik <jgarzik@pobox.com>
* gtk/gtkselection.c:
(gtk_selection_property_notify): Check args for NULL.
(gtk_selection_default_handler):
Replace manual list count with call to g_list_length.
Remove signedness of temp var 'count' to agree with usage.
Slight spacing adjustment for readability.
* gtk/gtkbox.c, gtk/gtklayout.c, gtk/gtkselection.c:
Init a few ptrs to NULL, to quiet warnings.
Diffstat (limited to 'gtk/gtkbox.c')
-rw-r--r-- | gtk/gtkbox.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkbox.c b/gtk/gtkbox.c index 77a5ce4e6e..6170d41b86 100644 --- a/gtk/gtkbox.c +++ b/gtk/gtkbox.c @@ -511,7 +511,7 @@ gtk_box_query_child_packing (GtkBox *box, GtkPackType *pack_type) { GList *list; - GtkBoxChild *child_info; + GtkBoxChild *child_info = NULL; g_return_if_fail (box != NULL); g_return_if_fail (GTK_IS_BOX (box)); @@ -549,7 +549,7 @@ gtk_box_set_child_packing (GtkBox *box, GtkPackType pack_type) { GList *list; - GtkBoxChild *child_info; + GtkBoxChild *child_info = NULL; g_return_if_fail (box != NULL); g_return_if_fail (GTK_IS_BOX (box)); |