Fixed uninitialized variable warning
diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index 2bf1ef5..a669d45 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -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;