From 9a5f7b17c60c534df73cce9dacfb3a02857b5fd0 Mon Sep 17 00:00:00 2001 From: Frank Praznik Date: Wed, 11 Oct 2023 11:23:24 -0400 Subject: [PATCH] Use SDL wrapped getenv function --- src/video/wayland/SDL_waylandvideo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/wayland/SDL_waylandvideo.c b/src/video/wayland/SDL_waylandvideo.c index 9117410e23..d6c0d0e37b 100644 --- a/src/video/wayland/SDL_waylandvideo.c +++ b/src/video/wayland/SDL_waylandvideo.c @@ -129,8 +129,8 @@ static SDL_VideoDevice *Wayland_CreateDevice(void) struct wl_display *display; /* Are we trying to connect to or are currently in a Wayland session? */ - if (!getenv("WAYLAND_DISPLAY")) { - const char *session = getenv("XDG_SESSION_TYPE"); + if (!SDL_getenv("WAYLAND_DISPLAY")) { + const char *session = SDL_getenv("XDG_SESSION_TYPE"); if (session && SDL_strcasecmp(session, "wayland")) { return NULL; }