mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
menu: Fix an uninitialized value
If the menu does not have any children, we'd otherwise end up calling g_object_ref() on an uninitialized value.
This commit is contained in:
parent
831309eed2
commit
9ceb41f9a4
@ -1757,7 +1757,7 @@ GtkWidget*
|
||||
gtk_menu_get_active (GtkMenu *menu)
|
||||
{
|
||||
GtkMenuPrivate *priv;
|
||||
GtkWidget *child;
|
||||
GtkWidget *child = NULL;
|
||||
GList *children, *l;
|
||||
|
||||
g_return_val_if_fail (GTK_IS_MENU (menu), NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user