Fixed uninitialized variable warning

This commit is contained in:
Sam Lantinga 2020-05-27 09:28:03 -07:00
parent 31916f11aa
commit af5eb56c76

View File

@ -1567,8 +1567,8 @@ int
Cocoa_CreateWindowFrom(_THIS, SDL_Window * window, const void *data)
{ @autoreleasepool
{
NSView* nsview;
NSWindow *nswindow;
NSView* nsview = NULL;
NSWindow *nswindow = NULL;
if ([(id)data isKindOfClass:[NSWindow class]]) {
nswindow = (NSWindow*)data;