Module Name:    src
Committed By:   martin
Date:           Tue Jan 28 13:23:49 UTC 2014

Modified Files:
        src/sys/fs/smbfs: smbfs_node.c

Log Message:
Bogus gcc 4.8 maybe use uninitialized warning


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/sys/fs/smbfs/smbfs_node.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/fs/smbfs/smbfs_node.c
diff -u src/sys/fs/smbfs/smbfs_node.c:1.50 src/sys/fs/smbfs/smbfs_node.c:1.51
--- src/sys/fs/smbfs/smbfs_node.c:1.50	Sun Oct 20 21:13:15 2013
+++ src/sys/fs/smbfs/smbfs_node.c	Tue Jan 28 13:23:49 2014
@@ -1,4 +1,4 @@
-/*	$NetBSD: smbfs_node.c,v 1.50 2013/10/20 21:13:15 christos Exp $	*/
+/*	$NetBSD: smbfs_node.c,v 1.51 2014/01/28 13:23:49 martin Exp $	*/
 
 /*
  * Copyright (c) 2000-2001 Boris Popov
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.50 2013/10/20 21:13:15 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: smbfs_node.c,v 1.51 2014/01/28 13:23:49 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -231,7 +231,7 @@ int
 smbfs_nget(struct mount *mp, struct vnode *dvp, const char *name, int nmlen,
 	struct smbfattr *fap, struct vnode **vpp)
 {
-	struct vnode *vp;
+	struct vnode *vp = NULL;	/* XXX gcc 4.8: maybe-uninitialized */
 	int error;
 
 	error = smbfs_node_alloc(mp, dvp, name, nmlen, fap, &vp);

Reply via email to