mirror of https://github.com/encounter/SDL.git
Fixed uninitialized variable warning
This commit is contained in:
parent
31916f11aa
commit
af5eb56c76
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue