Initialize btn variable to zero

Fixes compiler warning 'btn' may be used uninitialized

Signed-off-by: Chris Michael <devilhorns@comcast.net>
This commit is contained in:
Chris Michael 2014-01-04 11:24:55 +00:00
parent 91ddfa0f86
commit eb4c914c3e
1 changed files with 2 additions and 2 deletions

View File

@ -2156,7 +2156,7 @@ _e_wl_shell_move_grab_cb_button(struct wl_pointer_grab *grab, unsigned int times
(state == WL_POINTER_BUTTON_STATE_RELEASED))
{
E_Wayland_Surface *ews = NULL;
int btn, x, y;
int btn = 0, x, y;
if (!(ews = ewsg->shell_surface->surface)) return;
@ -2240,7 +2240,7 @@ _e_wl_shell_resize_grab_cb_button(struct wl_pointer_grab *grab, unsigned int tim
(state == WL_POINTER_BUTTON_STATE_RELEASED))
{
E_Wayland_Surface *ews = NULL;
int btn, x, y;
int btn = 0, x, y;
if (!(ews = ewsg->shell_surface->surface)) return;