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:
Timm Bäder 2019-07-15 06:43:25 +02:00
parent 831309eed2
commit 9ceb41f9a4

View File

@ -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);