From 8173e830544e74284c5bd4510f52b9e19fe25baa Mon Sep 17 00:00:00 2001
From: Daniel J Walsh <dwalsh@redhat.com>
Date: Thu, 30 Apr 2020 16:25:45 -0400
Subject: Fix errors found in coverity scan

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
---
 pkg/util/mountOpts.go | 1 +
 1 file changed, 1 insertion(+)

(limited to 'pkg')

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)
 		}
-- 
cgit v1.2.3-54-g00ecf