Skip to content
Permalink
Browse files

use NULL instead of uninitialized variable

follow-up to ddf6f38
  • Loading branch information...
monsta committed May 16, 2018
1 parent 8a31b06 commit 7cae49a343bc04f503b70da00bb5a45bd5c635b3
Showing with 2 additions and 4 deletions.
  1. +2 −4 libcaja-private/caja-dnd.c
@@ -785,7 +785,6 @@ caja_drag_drop_action_ask (GtkWidget *widget,
GtkWidget *menu;
GtkWidget *menu_item;
DropActionMenuData damd;
GdkEvent *event;

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

gtk_grab_add (menu);

gtk_menu_popup_at_pointer (GTK_MENU (menu), (const GdkEvent*) event);
gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);

g_main_loop_run (damd.loop);

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

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

gtk_grab_add (menu);

gtk_menu_popup_at_pointer (GTK_MENU (menu), (const GdkEvent*) event);
gtk_menu_popup_at_pointer (GTK_MENU (menu), NULL);

g_main_loop_run (damd.loop);

1 comment on commit 7cae49a

@raveit65

This comment has been minimized.

Copy link
Member

commented on 7cae49a May 17, 2018

Indeed, there is a build warning about, still wondering that i missed that.
Thx.

Please sign in to comment.
You can’t perform that action at this time.