aboutsummaryrefslogtreecommitdiff
path: root/src/partialator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/partialator.c')
-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("-");