From 0b71898cb17696240e67e505aadd176a1959b11c Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Wed, 11 Oct 2023 10:18:12 -0700 Subject: [PATCH] Make it clear that the string comparison isn't a boolean check --- src/video/wayland/SDL_waylandvideo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c index d6c0d0e37b..09b8368081 100644 --- a/src/video/wayland/SDL_waylandvideo.c +++ b/src/video/wayland/SDL_waylandvideo.c @@ -131,7 +131,7 @@ static SDL_VideoDevice *Wayland_CreateDevice(void) /* Are we trying to connect to or are currently in a Wayland session? */ if (!SDL_getenv("WAYLAND_DISPLAY")) { const char *session = SDL_getenv("XDG_SESSION_TYPE"); - if (session && SDL_strcasecmp(session, "wayland")) { + if (session && SDL_strcasecmp(session, "wayland") != 0) { return NULL; } }