diff options
author | Thomas White <taw@physics.org> | 2011-09-23 15:03:18 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:37 +0100 |
commit | bebd2d95386b057403326ebf438d660522875e4e (patch) | |
tree | 5a85138658942d7753c9bae734e8e4c68c659427 | |
parent | e510238f124bdb3bc394058e4389ca0a828e99c2 (diff) |
partialator: Check -j argument
-rw-r--r-- | src/partialator.c | 5 |
1 files changed, 5 insertions, 0 deletions
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("-"); |