In the Key Found code, don't display the string in the debug code since it

doesn't exist anymore when we display it. Doh!
This commit is contained in:
Robert James Kaes 2000-10-23 21:46:38 +00:00
parent 1de608ec5c
commit b6c6939e0a

View File

@ -1,4 +1,4 @@
/* $Id: ternary.c,v 1.2 2000-09-26 04:59:20 rjkaes Exp $
/* $Id: ternary.c,v 1.3 2000-10-23 21:46:38 rjkaes Exp $
*
* This module creates a Ternary Search Tree which can store both string
* keys, and arbitrary data for each key. It works similar to a hash, and
@ -314,7 +314,7 @@ int ternary_insert(TERNARY tno, const char *s, void *data)
while ((pp = *p)) {
if ((d = *s - pp->splitchar) == 0) {
if (*s++ == 0) {
DEBUG2("Key exists: %s", s);
DEBUG2("Key exists");
return TE_EXISTS;
}
p = &(pp->eqkid);