mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-10 11:57:44 +02:00
fix memset in test code.
git-svn-id: file:///svn/unbound/trunk@2593 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user