mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-06 19:54:18 +00:00
Exit if the required argument is missing.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8328
This commit is contained in:
parent
0d4145f502
commit
df1c49c18c
@ -299,6 +299,7 @@ int main(int argc, char** argv)
|
||||
if (optind + 1 != argc)
|
||||
{
|
||||
fprintf(stderr, "Error: wrong number of arguments.\n");
|
||||
return 1;
|
||||
}
|
||||
matrix_size = atoi(argv[optind]);
|
||||
|
||||
|
||||
@ -57,6 +57,7 @@ int main(int argc, char **argv)
|
||||
if (optind + 1 != argc)
|
||||
{
|
||||
fprintf(stderr, "Error: wrong number of arguments.\n");
|
||||
return 1;
|
||||
}
|
||||
n = atoi(argv[optind]);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user