summaryrefslogtreecommitdiff
path: root/clients
diff options
context:
space:
mode:
authorGravatar Karl Ramm <kcr@1ts.org>2013-02-26 22:49:55 -0500
committerGravatar Karl Ramm <kcr@1ts.org>2013-02-26 22:49:55 -0500
commit9b62605a5ab66cf8c83b164add7088894ff8ec3f (patch)
tree9831ad74eca82db9d6435badea0964da2b09974f /clients
parent154fba1677f7319e60fc717780669848e141f4b4 (diff)
Make _sure_ we're not making assumptions about ZNotice_ts on the stack
Diffstat (limited to 'clients')
-rw-r--r--clients/zwrite/zwrite.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/clients/zwrite/zwrite.c b/clients/zwrite/zwrite.c
index 49dd06a..f6780a5 100644
--- a/clients/zwrite/zwrite.c
+++ b/clients/zwrite/zwrite.c
@@ -224,8 +224,9 @@ main(int argc, char *argv[])
}
signature = sigbfr;
}
- }
+ }
+ memset(&notice, 0, sizeof(ZNotice_t));
notice.z_kind = ACKED;
notice.z_port = 0;
notice.z_class = class;