From ba1d3896885b2bb920501728ef649a7cc5fc42ad Mon Sep 17 00:00:00 2001 From: scw Date: Sun, 24 Nov 2002 11:02:57 +0000 Subject: [PATCH] Fix an uninitialised variable warning. --- sys/nfs/nfs_vfsops.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index e22e871743ab..ad0773296295 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -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 -__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.addrlen = sa->sa_len; + } else + args.addrlen = 0; + args.version = NFS_ARGSVERSION; - args.addrlen = sa->sa_len; args.sotype = nmp->nm_sotype; args.proto = nmp->nm_soproto; args.fh = NULL;