From 75b324211c094aea8373e3e6b7846e78b7befb89 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Sun, 9 Apr 2006 08:53:39 +0000 Subject: [PATCH] in case of an faulty event this might not get initialized git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mac/carbon/window.cpp b/src/mac/carbon/window.cpp index 47a280bc4d..c015cea8ee 100644 --- a/src/mac/carbon/window.cpp +++ b/src/mac/carbon/window.cpp @@ -498,7 +498,7 @@ pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , Even wchar_t* uniChars = NULL ; UInt32 when = EventTimeToTicks( GetEventTime( event ) ) ; - UniChar* charBuf; + UniChar* charBuf = NULL; UInt32 dataSize = 0 ; int numChars = 0 ; UniChar buf[2] ; -- 2.45.2