summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/mount/getmntopts.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sbin/mount/getmntopts.c b/sbin/mount/getmntopts.c
index e284c09..0a6ceb1 100644
--- a/sbin/mount/getmntopts.c
+++ b/sbin/mount/getmntopts.c
@@ -84,10 +84,8 @@ getmntopts(options, m0, flagp, altflagp)
for (m = m0; m->m_option != NULL; ++m) {
len = strlen(m->m_option);
if (strncasecmp(opt, m->m_option, len) == 0)
- if ( m->m_option[len] == '\0'
- || m->m_option[len] == '='
- )
- break;
+ if (opt[len] == '\0' || opt[len] == '=')
+ break;
}
/* Save flag, or fail if option is not recognized. */
OpenPOWER on IntegriCloud