]> git.saurik.com Git - wxWidgets.git/commitdiff
in case of an faulty event this might not get initialized
authorStefan Csomor <csomor@advancedconcepts.ch>
Sun, 9 Apr 2006 08:53:39 +0000 (08:53 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Sun, 9 Apr 2006 08:53:39 +0000 (08:53 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/window.cpp

index 47a280bc4d4d83e3b9343e128ada44dd5a42d4f0..c015cea8ee974736e946c152934d10f00d60aab9 100644 (file)
@@ -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] ;