aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-09-23 15:03:18 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:37 +0100
commitbebd2d95386b057403326ebf438d660522875e4e (patch)
tree5a85138658942d7753c9bae734e8e4c68c659427
parente510238f124bdb3bc394058e4389ca0a828e99c2 (diff)
partialator: Check -j argument
-rw-r--r--src/partialator.c5
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("-");