Skip to content

Commit

Permalink
Fixed uninitialized variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 27, 2020
1 parent 31916f1 commit af5eb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1567,8 +1567,8 @@ - (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
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;
Expand Down

0 comments on commit af5eb56

Please sign in to comment.