diff options
author | Steve Dickson <steved@redhat.com> | 2010-11-22 11:33:37 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2010-11-22 11:33:37 -0500 |
commit | 409487978593de13ae36be0ee56d8111ad6b3319 (patch) | |
tree | b2ae88f52f7cdbd876c2f2689f5f6ab0af41c827 | |
parent | f4968a724c1d4162a8e2b9f6a19c460cc56c95f7 (diff) | |
download | nfs-utils-409487978593de13ae36be0ee56d8111ad6b3319.tar.gz nfs-utils-409487978593de13ae36be0ee56d8111ad6b3319.tar.xz nfs-utils-409487978593de13ae36be0ee56d8111ad6b3319.zip |
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 <steved@redhat.com>
-rw-r--r-- | utils/mount/stropts.c | 4 |
1 files 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); |