From 409487978593de13ae36be0ee56d8111ad6b3319 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Mon, 22 Nov 2010 11:33:37 -0500 Subject: [PATCH] Removed a couple warnings from utils/mount/stropts.c stropts.c:740:6: warning: 'ret' may be used uninitialized in this function stropts.c:653:6: warning: 'ret' may be used uninitialized in this function Signed-off-by: Steve Dickson --- utils/mount/stropts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/mount/stropts.c b/utils/mount/stropts.c index ac81616..e314b82 100644 --- a/utils/mount/stropts.c +++ b/utils/mount/stropts.c @@ -650,7 +650,7 @@ out_fail: static int nfs_try_mount_v3v2(struct nfsmount_info *mi) { struct addrinfo *ai; - int ret; + int ret = 0; for (ai = mi->address; ai != NULL; ai = ai->ai_next) { ret = nfs_do_mount_v3v2(mi, ai->ai_addr, ai->ai_addrlen); @@ -737,7 +737,7 @@ out_fail: static int nfs_try_mount_v4(struct nfsmount_info *mi) { struct addrinfo *ai; - int ret; + int ret = 0; for (ai = mi->address; ai != NULL; ai = ai->ai_next) { ret = nfs_do_mount_v4(mi, ai->ai_addr, ai->ai_addrlen); -- 2.39.2