Fixed potential free of uninitialized memory (thanks Simon!)

This commit is contained in:
Sam Lantinga
2017-08-02 10:24:47 -07:00
parent 56363ebf61
commit 4be066707d
+1 -1
View File
@@ -96,7 +96,7 @@ KMSDRM_Create(int devindex)
device = (SDL_VideoDevice *) SDL_calloc(1, sizeof(SDL_VideoDevice));
if (device == NULL) {
SDL_OutOfMemory();
goto cleanup;
return NULL;
}
/* Initialize internal data */