summaryrefslogtreecommitdiff
path: root/usr.sbin/btctl
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2008-12-01 23:32:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2008-12-01 23:32:19 +0000
commit32ca017e673ec0a66d47d28c0a68092ecc087cb3 (patch)
tree4917218edfca24a787c1de44d1f86c6f1d95b1df /usr.sbin/btctl
parentd04f9676e0d9e415c9ebed34dc90bcb200b81d97 (diff)
bzero local variable; ok uwe
Diffstat (limited to 'usr.sbin/btctl')
-rw-r--r--usr.sbin/btctl/parse.y4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/btctl/parse.y b/usr.sbin/btctl/parse.y
index a9523d75e7e..3de313b1d9c 100644
--- a/usr.sbin/btctl/parse.y
+++ b/usr.sbin/btctl/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.4 2008/12/01 23:31:41 deraadt Exp $ */
+/* $OpenBSD: parse.y,v 1.5 2008/12/01 23:32:18 deraadt Exp $ */
/*
* Copyright (c) 2008 Uwe Stuehler <uwe@openbsd.org>
@@ -111,6 +111,7 @@ ruleset : /* empty */
main : INTERFACE address name_opt disabled_opt {
btctl_interface_stmt stmt;
+ bzero(&stmt, sizeof(stmt));
bdaddr_copy(&stmt.addr, &$2);
strbufcpy("interface name", $3, stmt.name);
@@ -134,6 +135,7 @@ main : INTERFACE address name_opt disabled_opt {
| ATTACH address type_opt pin_opt {
btctl_attach_stmt stmt;
+ bzero(&stmt, sizeof(stmt));
bdaddr_copy(&stmt.addr, &$2);
stmt.type = $3;