summaryrefslogtreecommitdiff
path: root/src/cli_parse.y
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-05-28 16:02:21 -0700
committerAn-Cheng Huang <ancheng@vyatta.com>2010-05-28 16:02:21 -0700
commit754da40f1a9d7ac5a75a9091b67df68e5da29626 (patch)
tree0c270847bbdae27116eb05b5c82219ac1930e29d /src/cli_parse.y
parent8fe5a241345c66a42a8fe97a6400b8d8283c4144 (diff)
downloadvyatta-cfg-754da40f1a9d7ac5a75a9091b67df68e5da29626.tar.gz
vyatta-cfg-754da40f1a9d7ac5a75a9091b67df68e5da29626.zip
always zero vtw_def struct before parsing template
Diffstat (limited to 'src/cli_parse.y')
-rw-r--r--src/cli_parse.y2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli_parse.y b/src/cli_parse.y
index 0f32928..107b874 100644
--- a/src/cli_parse.y
+++ b/src/cli_parse.y
@@ -245,6 +245,8 @@ char *parse_path;
int parse_def(vtw_def *defp, char *path, boolean type_only)
{
int status;
+ /* always zero vtw_def struct */
+ memset(defp, 0, sizeof(vtw_def));
yy_cli_def_lineno = 1;
parse_status = 0;
parse_defp = defp;