From 7b27594274f2f4b3a78abb943ae41ac22bb39ac2 Mon Sep 17 00:00:00 2001 From: Sylvain Becker Date: Mon, 11 Mar 2019 15:27:42 +0100 Subject: [PATCH] KMSDRM: missing return value in VideoInit() (Bug 4530) --- src/video/kmsdrm/SDL_kmsdrmvideo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c index 3fbdaa2e6..eebd7e8e6 100644 --- a/src/video/kmsdrm/SDL_kmsdrmvideo.c +++ b/src/video/kmsdrm/SDL_kmsdrmvideo.c @@ -511,6 +511,8 @@ KMSDRM_VideoInit(_THIS) KMSDRM_InitMouse(_this); + return ret; + cleanup: if (encoder != NULL) KMSDRM_drmModeFreeEncoder(encoder);