Commit fcbaa062 authored by Romain Bignon's avatar Romain Bignon

check if nprocess is negative

parent 169493f7
......@@ -246,7 +246,7 @@ int main(int argc, char **argv)
exit(EXIT_FAILURE);
}
if (!nprocess || nprocess > 10)
if (nprocess < 1 || nprocess > 10)
{
fprintf(stderr, "Number of forks needs to be between 1 and 10\n");
exit(EXIT_FAILURE);
......
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