Static analyzers (e.g., Coverity) have a hard time understanding why
'optarg' is tested for NULL, and later in another place, code assumes
that it's non-NULL. For idmapping, the optarg is required.
Signed-off-by: Karel Zak <kzak@redhat.com>
break;
case MOUNT_OPT_MAP_GROUPS:
case MOUNT_OPT_MAP_USERS:
- if (optarg && *optarg == '=')
+ if (*optarg == '=')
optarg++;
if (idmap && (*idmap == '/' || *optarg == '/')) {
warnx(_("bad usage"));