Module Name: src
Committed By: justin
Date: Mon Dec 8 00:44:45 UTC 2014
Modified Files:
src/sys/net: bpfjit.c
Log Message:
Help gcc by initialising variable
To generate a diff of this commit:
cvs rdiff -u -r1.36 -r1.37 src/sys/net/bpfjit.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/net/bpfjit.c
diff -u src/sys/net/bpfjit.c:1.36 src/sys/net/bpfjit.c:1.37
--- src/sys/net/bpfjit.c:1.36 Thu Nov 20 20:31:22 2014
+++ src/sys/net/bpfjit.c Mon Dec 8 00:44:45 2014
@@ -1,4 +1,4 @@
-/* $NetBSD: bpfjit.c,v 1.36 2014/11/20 20:31:22 alnsn Exp $ */
+/* $NetBSD: bpfjit.c,v 1.37 2014/12/08 00:44:45 justin Exp $ */
/*-
* Copyright (c) 2011-2014 Alexander Nasonov.
@@ -31,9 +31,9 @@
#include <sys/cdefs.h>
#ifdef _KERNEL
-__KERNEL_RCSID(0, "$NetBSD: bpfjit.c,v 1.36 2014/11/20 20:31:22 alnsn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpfjit.c,v 1.37 2014/12/08 00:44:45 justin Exp $");
#else
-__RCSID("$NetBSD: bpfjit.c,v 1.36 2014/11/20 20:31:22 alnsn Exp $");
+__RCSID("$NetBSD: bpfjit.c,v 1.37 2014/12/08 00:44:45 justin Exp $");
#endif
#include <sys/types.h>
@@ -1225,7 +1225,7 @@ static bool
read_pkt_insn(const struct bpf_insn *pc, bpfjit_abc_length_t *length)
{
bool rv;
- bpfjit_abc_length_t width;
+ bpfjit_abc_length_t width = 0; /* XXXuninit */
switch (BPF_CLASS(pc->code)) {
default: