From 9b62605a5ab66cf8c83b164add7088894ff8ec3f Mon Sep 17 00:00:00 2001 From: Karl Ramm Date: Tue, 26 Feb 2013 22:49:55 -0500 Subject: Make _sure_ we're not making assumptions about ZNotice_ts on the stack --- clients/zwrite/zwrite.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'clients') 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(¬ice, 0, sizeof(ZNotice_t)); notice.z_kind = ACKED; notice.z_port = 0; notice.z_class = class; -- cgit v1.2.3