[hts-users:01844] A bug in HHEd.c:AddLeafList()
Hi all,
I found a bug in HHEd.c:AddLeafList(), please apply the attached patch
code. Note that this bug doesn't affect the clustering result and final
quality.
Best regards,
Heiga ZEN (Byung Ha CHUN)
--
--------------------------
Heiga ZEN (Byung Ha CHUN)
Speech Technology Group
Cambridge Research Lab
Toshiba Research Europe
phone: +44 1223 436975
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________--- HHEd.c 2008-11-22 10:07:50.565302000 +0000
+++ HHEd.c 2008-12-18 18:24:47.626796000 +0000
@@ -3399,17 +3399,13 @@
/* delete node->parent from leaves */
p = node->parent;
if (p!=NULL) {
- if (p==tree->leaf) {
+ if (p==tree->leaf)
tree->leaf = p->next;
- }
- if (p->prev!=NULL) {
+ if (p->prev!=NULL)
p->prev->next = p->next;
- p->prev = NULL;
- }
- if (p->next!=NULL) {
+ if (p->next!=NULL)
p->next->prev = p->prev;
- p->next = NULL;
- }
+ p->prev = p->next = NULL;
}
/* search insert location of given node */