Fix an uninitialised variable warning.

This commit is contained in:
scw 2002-11-24 11:02:57 +00:00
parent 5521093d4b
commit ba1d389688
1 changed files with 6 additions and 4 deletions

View File

@ -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 * Copyright (c) 1989, 1993, 1995
@ -39,7 +39,7 @@
*/ */
#include <sys/cdefs.h> #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) #if defined(_KERNEL_OPT)
#include "opt_compat_netbsd.h" #include "opt_compat_netbsd.h"
@ -579,9 +579,11 @@ nfs_mount(mp, path, data, ndp, p)
error = copyout(sa, args.addr, sa->sa_len); error = copyout(sa, args.addr, sa->sa_len);
if (error) if (error)
return (error); return (error);
}
args.version = NFS_ARGSVERSION;
args.addrlen = sa->sa_len; args.addrlen = sa->sa_len;
} else
args.addrlen = 0;
args.version = NFS_ARGSVERSION;
args.sotype = nmp->nm_sotype; args.sotype = nmp->nm_sotype;
args.proto = nmp->nm_soproto; args.proto = nmp->nm_soproto;
args.fh = NULL; args.fh = NULL;