Skip to content

Commit 7cae49a

Browse files
committed
use NULL instead of uninitialized variable
follow-up to ddf6f38
1 parent 8a31b06 commit 7cae49a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

libcaja-private/caja-dnd.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,6 @@ caja_drag_drop_action_ask (GtkWidget *widget,
785785
GtkWidget *menu;
786786
GtkWidget *menu_item;
787787
DropActionMenuData damd;
788-
GdkEvent *event;
789788

790789
/* Create the menu and set the sensitivity of the items based on the
791790
* allowed actions.
@@ -828,7 +827,7 @@ caja_drag_drop_action_ask (GtkWidget *widget,
828827

829828
gtk_grab_add (menu);
830829

831-
gtk_menu_popup_at_pointer (GTK_MENU (menu), (const GdkEvent*) event);
830+
gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
832831

833832
g_main_loop_run (damd.loop);
834833

@@ -849,7 +848,6 @@ caja_drag_drop_background_ask (GtkWidget *widget,
849848
GtkWidget *menu;
850849
GtkWidget *menu_item;
851850
DropActionMenuData damd;
852-
GdkEvent *event;
853851

854852
/* Create the menu and set the sensitivity of the items based on the
855853
* allowed actions.
@@ -882,7 +880,7 @@ caja_drag_drop_background_ask (GtkWidget *widget,
882880

883881
gtk_grab_add (menu);
884882

885-
gtk_menu_popup_at_pointer (GTK_MENU (menu), (const GdkEvent*) event);
883+
gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);
886884

887885
g_main_loop_run (damd.loop);
888886

0 commit comments

Comments
 (0)