mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Fixed uninitialized variable warning
This commit is contained in:
parent
31916f11aa
commit
af5eb56c76
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue