Source-Changes-HG archive

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

[src/trunk]: src/sys/net Don't return uninitialized value.



details:   https://anonhg.NetBSD.org/src/rev/05ecbf42bf1f
branches:  trunk
changeset: 499060:05ecbf42bf1f
user:      enami <enami%NetBSD.org@localhost>
date:      Fri Nov 10 02:31:53 2000 +0000

description:
Don't return uninitialized value.

diffstat:

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

diffs (18 lines):

diff -r 5ca0d68dc218 -r 05ecbf42bf1f sys/net/if_vlan.c
--- a/sys/net/if_vlan.c Fri Nov 10 02:29:44 2000 +0000
+++ b/sys/net/if_vlan.c Fri Nov 10 02:31:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vlan.c,v 1.19 2000/11/10 02:29:44 enami Exp $       */
+/*     $NetBSD: if_vlan.c,v 1.20 2000/11/10 02:31:53 enami Exp $       */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -411,7 +411,7 @@
 vlan_set_promisc(struct ifnet *ifp)
 {
        struct ifvlan *ifv = ifp->if_softc;
-       int error;
+       int error = 0;
 
        if ((ifp->if_flags & IFF_PROMISC) != 0) {
                if ((ifv->ifv_flags & IFVF_PROMISC) == 0) {



Home | Main Index | Thread Index | Old Index