Fix an uninitialised variable warning.
This commit is contained in:
parent
5521093d4b
commit
ba1d389688
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nfs_vfsops.c,v 1.119 2002/10/21 12:52:34 yamt Exp $ */
|
||||
/* $NetBSD: nfs_vfsops.c,v 1.120 2002/11/24 11:02:57 scw Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993, 1995
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.119 2002/10/21 12:52:34 yamt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: nfs_vfsops.c,v 1.120 2002/11/24 11:02:57 scw Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -579,9 +579,11 @@ nfs_mount(mp, path, data, ndp, p)
|
|||
error = copyout(sa, args.addr, sa->sa_len);
|
||||
if (error)
|
||||
return (error);
|
||||
}
|
||||
args.version = NFS_ARGSVERSION;
|
||||
args.addrlen = sa->sa_len;
|
||||
} else
|
||||
args.addrlen = 0;
|
||||
|
||||
args.version = NFS_ARGSVERSION;
|
||||
args.sotype = nmp->nm_sotype;
|
||||
args.proto = nmp->nm_soproto;
|
||||
args.fh = NULL;
|
||||
|
|
Loading…
Reference in New Issue