From bebd2d95386b057403326ebf438d660522875e4e Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 23 Sep 2011 15:03:18 +0200 Subject: partialator: Check -j argument --- src/partialator.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/partialator.c') diff --git a/src/partialator.c b/src/partialator.c index 49f35760..4a987077 100644 --- a/src/partialator.c +++ b/src/partialator.c @@ -356,6 +356,11 @@ int main(int argc, char *argv[]) } + if ( nthreads < 1 ) { + ERROR("Invalid number of threads.\n"); + return 1; + } + /* Sanitise input filename and open */ if ( infile == NULL ) { infile = strdup("-"); -- cgit v1.2.3