diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-12-11 15:23:28 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-12-17 09:05:23 +0100 |
commit | e468ffdc6d3b1c7127b785eb73a1f5c94751fb01 (patch) | |
tree | 9db94e956b8932b6b1a89ca26ab63ade56559287 /ui | |
parent | e858e04dd400744a93d453e97b33f9eaee2dabec (diff) |
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')
-rw-r--r-- | ui/sdl2.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) { |