diff --git a/src/mac/carbon/filedlg.cpp b/src/mac/carbon/filedlg.cpp index 59807f398d..9cd758e8c3 100644 --- a/src/mac/carbon/filedlg.cpp +++ b/src/mac/carbon/filedlg.cpp @@ -441,7 +441,7 @@ int wxFileDialog::ShowModal() if (err != noErr) break; - CFURLRef fullURLRef; + CFURLRef fullURLRef = 0 ; if (m_dialogStyle & wxSAVE) { CFURLRef parentURLRef = ::CFURLCreateFromFSRef(NULL, &theFSRef);