Fixed uninitialized variable warning

This commit is contained in:
Sam Lantinga 2020-05-27 09:28:03 -07:00
parent 31916f11aa
commit af5eb56c76
1 changed files with 2 additions and 2 deletions

View File

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