Source-Changes-HG archive

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

[src/trunk]: src/sys/netsmb Uninitialized vars, found by brainy



details:   https://anonhg.NetBSD.org/src/rev/ec78e37a2de5
branches:  trunk
changeset: 817261:ec78e37a2de5
user:      maxv <maxv%NetBSD.org@localhost>
date:      Mon Aug 15 08:17:35 2016 +0000

description:
Uninitialized vars, found by brainy

diffstat:

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

diffs (29 lines):

diff -r 07fbb2617edd -r ec78e37a2de5 sys/netsmb/smb_rq.c
--- a/sys/netsmb/smb_rq.c       Mon Aug 15 08:12:32 2016 +0000
+++ b/sys/netsmb/smb_rq.c       Mon Aug 15 08:17:35 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: smb_rq.c,v 1.34 2010/12/17 13:05:29 pooka Exp $        */
+/*     $NetBSD: smb_rq.c,v 1.35 2016/08/15 08:17:35 maxv Exp $ */
 
 /*
  * Copyright (c) 2000-2001, Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smb_rq.c,v 1.34 2010/12/17 13:05:29 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smb_rq.c,v 1.35 2016/08/15 08:17:35 maxv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -343,8 +343,8 @@
 {
        struct mdchain *mdp = &rqp->sr_rp;
        int error;
-       u_int8_t errclass;
-       u_int16_t serror;
+       u_int8_t errclass = 0;
+       u_int16_t serror = 0;
 
        error = smb_iod_waitrq(rqp);
        if (error)



Home | Main Index | Thread Index | Old Index