summaryrefslogtreecommitdiff
path: root/pkg/util/mountOpts.go
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2020-04-30 16:25:45 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2020-05-01 13:26:50 -0400
commit8173e830544e74284c5bd4510f52b9e19fe25baa (patch)
tree4e866d45570206df84e28ae3f0f05cf828dbad69 /pkg/util/mountOpts.go
parent226e0da6fe12bf8a023f67ce6cebacd54ec65fdc (diff)
downloadpodman-8173e830544e74284c5bd4510f52b9e19fe25baa.tar.gz
podman-8173e830544e74284c5bd4510f52b9e19fe25baa.tar.bz2
podman-8173e830544e74284c5bd4510f52b9e19fe25baa.zip
Fix errors found in coverity scan
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'pkg/util/mountOpts.go')
-rw-r--r--pkg/util/mountOpts.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/util/mountOpts.go b/pkg/util/mountOpts.go
index 329a7c913..929223244 100644
--- a/pkg/util/mountOpts.go
+++ b/pkg/util/mountOpts.go
@@ -108,6 +108,7 @@ func ProcessOptions(options []string, isTmpfs bool, sourcePath string) ([]string
if foundZ {
return nil, errors.Wrapf(ErrDupeMntOption, "only one of 'z' and 'Z' can be used")
}
+ foundZ = true
default:
return nil, errors.Wrapf(ErrBadMntOption, "unknown mount option %q", opt)
}