From 7e2f14c814e86dd6ad30d7156055c2c3390d0cff Mon Sep 17 00:00:00 2001 From: Simson Garfinkel Date: Sun, 14 Jan 2024 23:32:03 -0500 Subject: [PATCH] closed #438 --- src/bulk_extractor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bulk_extractor.cpp b/src/bulk_extractor.cpp index 7be43e75..4dd1646b 100644 --- a/src/bulk_extractor.cpp +++ b/src/bulk_extractor.cpp @@ -298,6 +298,10 @@ int bulk_extractor_main( std::ostream &cout, std::ostream &cerr, int argc,char * cfg.num_threads = 0; } + if ( result.count( "no_threads" )) { + cfg.num_threads = 0; + } + sc.max_depth = result["max_depth"].as(); cfg.max_bad_alloc_errors = result["max_bad_alloc_errors"].as();