mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
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
Block a user