Patchwork [4/9] mount: don't make -s (sloppy) imply -v (verbose)

login
register
mail settings
Submitter Jim Meyering
Date Dec. 1, 2011, 3:58 p.m.
Message ID <1322755106-8171-5-git-send-email-jim@meyering.net>
Download mbox | patch
Permalink /patch/128711/
State Superseded
Headers show

Comments

Jim Meyering - Dec. 1, 2011, 3:58 p.m.
From: Jim Meyering <meyering@redhat.com>

* src/mount/main.c (main): Add a break; stmt between case 's': and
case 'v':.  Spotted by coverity.
Bug introduced with the initial commit of this file: 0520ee72.

Signed-off-by: Jim Meyering <meyering@redhat.com>
---
 src/mount/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/src/mount/main.c b/src/mount/main.c
index b49d152..1efde77 100644
--- a/src/mount/main.c
+++ b/src/mount/main.c
@@ -483,6 +483,7 @@  int main(int argc, char *argv[])
 			break;
 		case 's':
 			sloppy = true;
+			break;
 		case 'v':
 			++verbose;
 			break;