diff options
author | Stef Walter <stef@memberwebs.com> | 2004-04-24 23:57:22 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-04-24 23:57:22 +0000 |
commit | b9cab65e320fccc04cd06694e717db5e4abb5dcc (patch) | |
tree | b64b5f1ca32b7b48b8ad96510ba88809497acce0 /daemon/basic.c | |
parent | cbbe71752d7f9c6204ab0f16600fe7f10490f203 (diff) |
Put nice assertions all over the place.
Diffstat (limited to 'daemon/basic.c')
-rw-r--r-- | daemon/basic.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 */ |