summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2006-01-10 11:52:51 +0000
committerharti <harti@FreeBSD.org>2006-01-10 11:52:51 +0000
commit3a835f07a439e6b66009a773e3bd57b577be5f86 (patch)
treea85d1ce23e071844f3a2c39d4b67aa8da4e6987c /contrib
parentd4f5668004fbca92108ae0a345d4223fe6aefeed (diff)
downloadFreeBSD-src-3a835f07a439e6b66009a773e3bd57b577be5f86.zip
FreeBSD-src-3a835f07a439e6b66009a773e3bd57b577be5f86.tar.gz
Vendor fix: initialize the flag field of a newly created node to be 0.
Submitted by: jasone
Diffstat (limited to 'contrib')
-rw-r--r--contrib/bsnmp/gensnmptree/gensnmptree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/bsnmp/gensnmptree/gensnmptree.c b/contrib/bsnmp/gensnmptree/gensnmptree.c
index 89cd237..c23c8a1 100644
--- a/contrib/bsnmp/gensnmptree/gensnmptree.c
+++ b/contrib/bsnmp/gensnmptree/gensnmptree.c
@@ -353,6 +353,7 @@ parse(enum tok tok)
node = xalloc(sizeof(struct node));
node->lno = lno;
+ node->flags = 0;
if (tok != '(')
report("'(' expected at begin of node");
OpenPOWER on IntegriCloud