Commit 7b27594274f2f4b3a78abb943ae41ac22bb39ac2

Sylvain Becker 2019-03-11T15:27:42

KMSDRM: missing return value in VideoInit() (Bug 4530)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/video/kmsdrm/SDL_kmsdrmvideo.c b/src/video/kmsdrm/SDL_kmsdrmvideo.c
index 3fbdaa2..eebd7e8 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);