diff --git a/src/osx/carbon/dcprint.cpp b/src/osx/carbon/dcprint.cpp index bcb4920b17..d6f9989a9d 100644 --- a/src/osx/carbon/dcprint.cpp +++ b/src/osx/carbon/dcprint.cpp @@ -189,7 +189,7 @@ void wxMacCarbonPrinterDC::StartPage( wxPrinterDC* dc ) native->GetPageFormat(), NULL); - CGContextRef pageContext; + CGContextRef pageContext = NULL ; if ( m_err == noErr ) {