diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-05-23 18:01:23 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-05-23 18:01:23 +0000 |
commit | d32e0d1ccba971571f440dece6976f69f235947d (patch) | |
tree | 38e29b362ac146ce3e4e3d1e7ded231b9b227c41 /src/anonymous.c | |
parent | 86313eb6f5a726c3f46e9be32587291d569698a2 (diff) |
Added ASSERT statements.
Diffstat (limited to 'src/anonymous.c')
-rw-r--r-- | src/anonymous.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/anonymous.c b/src/anonymous.c index d99d46e..f346ccb 100644 --- a/src/anonymous.c +++ b/src/anonymous.c @@ -1,4 +1,4 @@ -/* $Id: anonymous.c,v 1.3 2000-10-23 21:43:52 rjkaes Exp $ +/* $Id: anonymous.c,v 1.4 2001-05-23 18:01:23 rjkaes Exp $ * * Handles insertion and searches for headers which should be let through when * the anonymous feature is turned on. The headers are stored in a Ternary @@ -23,6 +23,7 @@ #endif #include <sys/types.h> +#include <assert.h> #include <ctype.h> #include <stdlib.h> #include <unistd.h> @@ -40,10 +41,14 @@ int new_anonymous(void) int anon_search(char *s) { + assert(s != NULL); + return ternary_search(anonymous_tree, s, NULL); } void anon_insert(char *s) { + assert(s != NULL); + ternary_insert(anonymous_tree, s, NULL); } |