Commit b383ccdf authored by Alessandro Rubini's avatar Alessandro Rubini

trivial: sdb-extract: fix argc error check

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent 1d5f6590
......@@ -109,7 +109,7 @@ int main(int argc, char **argv)
}
}
}
if (optind < argc - 2) {
if (optind != argc - 2) {
fprintf(stderr, "%s: Use: \"%s [-f] [-e <entry>] "
"<output-dir> <sdb-file>\n", prgname, prgname);
exit(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment