Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Help gcc by initialising variable



details:   https://anonhg.NetBSD.org/src/rev/0cebc185c435
branches:  trunk
changeset: 334816:0cebc185c435
user:      justin <justin%NetBSD.org@localhost>
date:      Mon Dec 08 00:44:45 2014 +0000

description:
Help gcc by initialising variable

diffstat:

 sys/net/bpfjit.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r b1ee259fbd70 -r 0cebc185c435 sys/net/bpfjit.c
--- a/sys/net/bpfjit.c  Mon Dec 08 00:19:37 2014 +0000
+++ b/sys/net/bpfjit.c  Mon Dec 08 00:44:45 2014 +0000
@@ -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 @@
 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:



Home | Main Index | Thread Index | Old Index