From b9cab65e320fccc04cd06694e717db5e4abb5dcc Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Sat, 24 Apr 2004 23:57:22 +0000 Subject: Put nice assertions all over the place. --- daemon/basic.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'daemon/basic.c') diff --git a/daemon/basic.c b/daemon/basic.c index da73682..ddce156 100644 --- a/daemon/basic.c +++ b/daemon/basic.c @@ -7,6 +7,8 @@ int basic_parse(const char* header, ha_buffer_t* buf, basic_header_t* rec) { char* t; + ASSERT(header && buf && rec); + memset(rec, 0, sizeof(*rec)); /* Trim the white space */ -- cgit v1.2.3