Browse Source

fixed linux build.

Ozkan Sezer 2 years ago
parent
commit
1e50823a14
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/core/linux/SDL_evdev.c

+ 1 - 1
src/core/linux/SDL_evdev.c

@@ -882,7 +882,7 @@ static int SDL_EVDEV_device_added(const char *dev_path, int udev_class)
             return ret;
             return ret;
         }
         }
     } else if (udev_class & SDL_UDEV_DEVICE_MOUSE) {
     } else if (udev_class & SDL_UDEV_DEVICE_MOUSE) {
-        ret = SDL_EVDEV_init_mouse(item, udev_class);
+        int ret = SDL_EVDEV_init_mouse(item, udev_class);
         if (ret < 0) {
         if (ret < 0) {
             close(item->fd);
             close(item->fd);
             SDL_free(item->path);
             SDL_free(item->path);