summaryrefslogtreecommitdiffstats
path: root/sbin/mount_nfs
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2010-09-04 08:42:19 +0000
committerkevlo <kevlo@FreeBSD.org>2010-09-04 08:42:19 +0000
commitddc5322166bee8f5c2b317bef177aa7f6d6e3d26 (patch)
tree148985acac29c96da80e6ed9e6952980055fe80d /sbin/mount_nfs
parent4b5750a69a283c2576e48edded1d054bb02c2e25 (diff)
downloadFreeBSD-src-ddc5322166bee8f5c2b317bef177aa7f6d6e3d26.zip
FreeBSD-src-ddc5322166bee8f5c2b317bef177aa7f6d6e3d26.tar.gz
Shut the compiler up; initializes the sotype variable to zero in
nfs_tryproto(). Reviewed by: rmacklem
Diffstat (limited to 'sbin/mount_nfs')
-rw-r--r--sbin/mount_nfs/mount_nfs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/mount_nfs/mount_nfs.c b/sbin/mount_nfs/mount_nfs.c
index 5e722a0..5881ab1 100644
--- a/sbin/mount_nfs/mount_nfs.c
+++ b/sbin/mount_nfs/mount_nfs.c
@@ -866,6 +866,7 @@ nfs_tryproto(struct addrinfo *ai, char *hostp, char *spec, char **errstr,
enum clnt_stat stat;
enum mountmode trymntmode;
+ sotype = 0;
trymntmode = mountmode;
errbuf[0] = '\0';
*errstr = errbuf;
OpenPOWER on IntegriCloud