mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-20 23:00:56 -05:00
fix memset in test code.
git-svn-id: file:///svn/unbound/trunk@2593 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
6f6ccee95b
commit
c1d79638c4
2 changed files with 4 additions and 1 deletions
|
|
@ -1,3 +1,6 @@
|
|||
23 January 2012: Wouter
|
||||
- Fix memset in test code.
|
||||
|
||||
20 January 2012: Wouter
|
||||
- Fix bug #424: compile on OpenIndiana OS with gcc 4.6.2.
|
||||
|
||||
|
|
|
|||
|
|
@ -231,7 +231,7 @@ static void adjustline(char* line, struct entry* e,
|
|||
static struct entry* new_entry()
|
||||
{
|
||||
struct entry* e = LDNS_MALLOC(struct entry);
|
||||
memset(e, 0, sizeof(e));
|
||||
memset(e, 0, sizeof(*e));
|
||||
e->match_opcode = false;
|
||||
e->match_qtype = false;
|
||||
e->match_qname = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue