aboutsummaryrefslogtreecommitdiff
path: root/ui/sdl2.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2019-12-11 15:23:28 +0100
committerThomas Huth <thuth@redhat.com>2019-12-17 09:05:23 +0100
commite468ffdc6d3b1c7127b785eb73a1f5c94751fb01 (patch)
tree9db94e956b8932b6b1a89ca26ab63ade56559287 /ui/sdl2.c
parente858e04dd400744a93d453e97b33f9eaee2dabec (diff)
downloadqemu-e468ffdc6d3b1c7127b785eb73a1f5c94751fb01.zip
qemu-e468ffdc6d3b1c7127b785eb73a1f5c94751fb01.tar.gz
qemu-e468ffdc6d3b1c7127b785eb73a1f5c94751fb01.tar.bz2
glib: use portable g_setenv()
We have a setenv() wrapper in os-win32.c that no one is actually using. Drop it and change to g_setenv() uniformly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <1576074210-52834-7-git-send-email-pbonzini@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'ui/sdl2.c')
-rw-r--r--ui/sdl2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/sdl2.c b/ui/sdl2.c
index bd4e736..9030f1c 100644
--- a/ui/sdl2.c
+++ b/ui/sdl2.c
@@ -772,7 +772,7 @@ static void sdl2_display_init(DisplayState *ds, DisplayOptions *o)
* This is a bit hackish but saves us from bigger problem.
* Maybe it's a good idea to fix this in SDL instead.
*/
- setenv("SDL_VIDEODRIVER", "x11", 0);
+ g_setenv("SDL_VIDEODRIVER", "x11", 0);
#endif
if (SDL_Init(SDL_INIT_VIDEO)) {