Initialize btn variable to zero
authorChris Michael <devilhorns@comcast.net>
Sat, 4 Jan 2014 11:24:55 +0000 (11:24 +0000)
committerChris Michael <devilhorns@comcast.net>
Sat, 4 Jan 2014 11:24:55 +0000 (11:24 +0000)
Fixes compiler warning 'btn' may be used uninitialized

Signed-off-by: Chris Michael <devilhorns@comcast.net>
src/modules/wl_desktop_shell/e_mod_main.c

index 000eb49..e3c297c 100644 (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;