aboutsummaryrefslogtreecommitdiffstats
path: root/c_src/sdl_video.c
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-05-24 11:21:59 +0200
committerLoïc Hoguin <[email protected]>2018-05-24 11:21:59 +0200
commit9868844f7f4d7c4fca164be610ef8f010a1255ee (patch)
treede2349664ef570e234acd006f001c7136910df38 /c_src/sdl_video.c
parent51340fa75960ad44997175139eabd8e80753b4a3 (diff)
downloadesdl2-9868844f7f4d7c4fca164be610ef8f010a1255ee.tar.gz
esdl2-9868844f7f4d7c4fca164be610ef8f010a1255ee.tar.bz2
esdl2-9868844f7f4d7c4fca164be610ef8f010a1255ee.zip
Fix cppcheck warnings
Diffstat (limited to 'c_src/sdl_video.c')
-rw-r--r--c_src/sdl_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/c_src/sdl_video.c b/c_src/sdl_video.c
index f14304b..4648ed1 100644
--- a/c_src/sdl_video.c
+++ b/c_src/sdl_video.c
@@ -68,6 +68,7 @@ NIF_CALL_HANDLER(thread_get_closest_display_mode)
mode.w = (long)args[2];
mode.h = (long)args[3];
mode.refresh_rate = (long)args[4];
+ mode.driverdata = NULL;
if (!SDL_GetClosestDisplayMode((long)args[0], &mode, &closest))
return atom_undefined;