Peter Maydell 6ff5b5d6d5 ui/sdl2: Check return value from g_setenv()
Setting environment variables can fail; check the return value
from g_setenv() and bail out if we couldn't set SDL_VIDEODRIVER.

Fixes: Coverity 1458798
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20210809161424.32355-1-peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
2021-08-10 10:56:39 +02:00
..
2020-09-30 19:09:19 +02:00
2021-06-23 14:26:04 +02:00
2021-07-26 10:24:49 +02:00
2019-03-11 08:39:02 +01:00
2021-02-04 15:58:54 +01:00
2021-05-21 09:42:44 +02:00
2021-08-10 10:39:46 +02:00
2020-10-15 16:35:06 +01:00
2019-08-16 13:31:52 +02:00
2020-12-10 12:15:18 -05:00
2020-08-21 06:30:21 -04:00
2021-05-21 09:42:44 +02:00
2017-07-27 14:23:09 +02:00
2021-05-21 09:42:44 +02:00
2016-02-04 17:01:04 +00:00
2019-02-05 16:50:18 +01:00
2021-01-23 15:55:07 -05:00
2021-05-21 09:42:44 +02:00