From ae240340ab910a944bae5cdc39da55136ce31438 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Wed, 4 Jan 2023 18:02:29 +0100 Subject: Fix for "Fl_Native_File_Chooser_MAC.mm compilation warning" (#627) --- src/Fl_Native_File_Chooser_MAC.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_Native_File_Chooser_MAC.mm b/src/Fl_Native_File_Chooser_MAC.mm index fbf97abed..d19079f3d 100644 --- a/src/Fl_Native_File_Chooser_MAC.mm +++ b/src/Fl_Native_File_Chooser_MAC.mm @@ -569,7 +569,7 @@ static char *prepareMacFilter(int count, const char *filter, char **patterns) { static NSPopUpButton *createPopupAccessory(NSSavePanel *panel, const char *filter, const char *title, int rank) { - NSPopUpButton *popup; + NSPopUpButton *popup = nil; NSRect rectview = NSMakeRect(5, 5, 350, filter ? 60 : 30); NSView *view = [[[NSView alloc] initWithFrame:rectview] autorelease]; NSRect rectbox = NSMakeRect(0, 3, 140, 20 ); -- cgit v1.2.3