| changeset 216 | 38b1bdbc5bc9 |
| parent 211 | 4c77142eaf36 |
| child 335 | 02cc96355b09 |
1.1 --- a/core/sm_trie.cpp Sat Dec 16 01:51:45 2006 +0000 1.2 +++ b/core/sm_trie.cpp Sat Dec 16 02:16:21 2006 +0000 1.3 @@ -603,6 +603,12 @@ 1.4 /* Do an initial browsing to make sure they're not the same string */ 1.5 if (strcmp(keyptr, term) == 0) 1.6 { 1.7 + if (!node->valset) 1.8 + { 1.9 + node->valset = true; 1.10 + node->value = value; 1.11 + return true; 1.12 + } 1.13 /* Same string. We can't insert. */ 1.14 return false; 1.15 }