diff options
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 */ |