summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;