Cygwin, support Windows-style parameter paths, typo (#512)

Correct a readability-redundant-string-cstr typo detected by clang
This commit is contained in:
Ben RUBSON 2018-04-23 10:28:19 +02:00 committed by GitHub
parent 6c1fde25fc
commit d0def19145
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -484,7 +484,7 @@ static bool processArgs(int argc, char *argv[],
// rest of the code. // rest of the code.
out->opts->rootDir = slashTerminate(argv[optind++]); out->opts->rootDir = slashTerminate(argv[optind++]);
out->opts->unmountPoint = string(argv[optind++]); out->opts->unmountPoint = string(argv[optind++]);
out->opts->mountPoint = slashTerminate(out->opts->unmountPoint.c_str()); out->opts->mountPoint = slashTerminate(out->opts->unmountPoint);
} else { } else {
// no mount point specified // no mount point specified
cerr << _("Missing one or more arguments, aborting.") << endl; cerr << _("Missing one or more arguments, aborting.") << endl;