Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
use NULL instead of uninitialized variable
follow-up to ddf6f38
  • Loading branch information
monsta committed May 16, 2018
1 parent 8a31b06 commit 7cae49a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libcaja-private/caja-dnd.c
Expand Up @@ -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.
Expand Down Expand Up @@ -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);

Expand All @@ -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.
Expand Down Expand Up @@ -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);

Expand Down

1 comment on commit 7cae49a

@raveit65
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Please sign in to comment.