popover: Initialize some locals

gtk_popover_get_pointing_to does not fill the given rect in every case.
This commit is contained in:
Timm Bäder 2017-08-28 11:15:58 +02:00
parent 8c0e5adaab
commit 619ee3797d

View File

@ -813,7 +813,7 @@ gtk_popover_get_gap_coords (GtkPopover *popover,
{
GtkWidget *widget = GTK_WIDGET (popover);
GtkPopoverPrivate *priv = popover->priv;
GdkRectangle rect;
GdkRectangle rect = { 0 };
gint base, tip, tip_pos;
gint initial_x, initial_y;
gint tip_x, tip_y;
@ -1104,7 +1104,7 @@ gtk_popover_update_position (GtkPopover *popover)
GtkWidget *widget = GTK_WIDGET (popover);
GtkAllocation window_alloc;
GtkBorder window_shadow;
GdkRectangle rect;
GdkRectangle rect = { 0 };
GtkRequisition req;
GtkPositionType pos;
gint overshoot[4];