From cdd2982e8881ed08d78846a8c4f09570d40c04c5 Mon Sep 17 00:00:00 2001 From: archie Date: Wed, 12 Apr 2000 17:29:33 +0000 Subject: [PATCH] Fix uninitialized variable. PR: kern/17911 Submitted by: Tom Pavel --- sys/netgraph/ng_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 5cf952304e3f..c066580a2d60 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -1519,7 +1519,7 @@ ng_generic_msg(node_p here, struct ng_mesg *msg, const char *retaddr, const struct ng_cmdlist *c; const struct ng_parse_type *argstype; struct ng_mesg *rp, *ascii, *binary; - int off; + int off = 0; /* Data area must contain at least a struct ng_mesg + '\0' */ ascii = (struct ng_mesg *)msg->data;