[uim-commit] r958 - branches/uim-0.4.7/xim

tkng at freedesktop.org tkng at freedesktop.org
Sun Jul 10 04:08:21 EST 2005


Author: tkng
Date: 2005-07-09 11:08:12 -0700 (Sat, 09 Jul 2005)
New Revision: 958

Modified:
   branches/uim-0.4.7/xim/compose.cpp
Log:
* xim/compose.cpp: Ported r915 (Corrupted data structure in uim-xim) from trunk.


Modified: branches/uim-0.4.7/xim/compose.cpp
===================================================================
--- branches/uim-0.4.7/xim/compose.cpp	2005-07-09 17:53:30 UTC (rev 957)
+++ branches/uim-0.4.7/xim/compose.cpp	2005-07-09 18:08:12 UTC (rev 958)
@@ -654,15 +654,6 @@
     char* tbp;
     struct stat st;
 
-    if (mTreeTop == NULL) {
-	mTreeTop = (DefTree *)malloc(sizeof(DefTree));
-	mTreeTop->succession = NULL;
-	mTreeTop->next = NULL;
-	mTreeTop->mb = NULL;
-	mTreeTop->utf8 = NULL;
-	mTreeTop->ks = NoSymbol;
-    }
-
     if (fstat(fileno(fp), &st) != -1) {
 	unsigned long size = (unsigned long)st.st_size;
 	if (size <= sizeof tb)



More information about the uim-commit mailing list