Source-Changes-HG archive

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

[src/trunk]: src/sys/net Initialise status to avoid -Wuninitialized warning.



details:   https://anonhg.NetBSD.org/src/rev/4901715078d7
branches:  trunk
changeset: 330509:4901715078d7
user:      alnsn <alnsn%NetBSD.org@localhost>
date:      Sat Jul 12 16:52:57 2014 +0000

description:
Initialise status to avoid -Wuninitialized warning.

diffstat:

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

diffs (30 lines):

diff -r 54033c9f02dd -r 4901715078d7 sys/net/bpfjit.c
--- a/sys/net/bpfjit.c  Sat Jul 12 16:13:57 2014 +0000
+++ b/sys/net/bpfjit.c  Sat Jul 12 16:52:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpfjit.c,v 1.24 2014/07/12 16:13:57 alnsn Exp $        */
+/*     $NetBSD: bpfjit.c,v 1.25 2014/07/12 16:52:57 alnsn 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.24 2014/07/12 16:13:57 alnsn Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpfjit.c,v 1.25 2014/07/12 16:52:57 alnsn Exp $");
 #else
-__RCSID("$NetBSD: bpfjit.c,v 1.24 2014/07/12 16:13:57 alnsn Exp $");
+__RCSID("$NetBSD: bpfjit.c,v 1.25 2014/07/12 16:52:57 alnsn Exp $");
 #endif
 
 #include <sys/types.h>
@@ -769,7 +769,7 @@
     const struct bpf_insn *pc, struct sljit_jump *to_mchain_jump,
     struct sljit_jump ***ret0, size_t *ret0_size, size_t *ret0_maxsize)
 {
-       int status;
+       int status = SLJIT_ERR_ALLOC_FAILED;
        uint32_t width;
        struct sljit_jump *jump;
 #ifdef _KERNEL



Home | Main Index | Thread Index | Old Index