package_repo: command_create(): Fix argument count check

This commit is contained in:
Ingo Weinhold
2013-03-29 19:44:12 +00:00
parent 3f986502fd
commit 9992342427
+1 -1
View File
@@ -155,7 +155,7 @@ command_create(int argc, const char* const* argv)
// The remaining arguments are the repository info file plus one or more
// package files, i.e. at least two more arguments.
if (optind + 2 >= argc)
if (optind + 2 > argc)
print_usage_and_exit(true);
const char* repositoryInfoFileName = argv[optind++];