diff --git a/src/prover_slow.h b/src/prover_slow.h index 1d825cf2..b9b08bac 100644 --- a/src/prover_slow.h +++ b/src/prover_slow.h @@ -106,7 +106,7 @@ std::vector ProveSlow(integer& D, form& x, uint64_t num_iterations, std if ((num_iterations&0xffff)==0) { struct stat buffer; - if (stat (shutdown_file_path.c_str(), &buffer) == 0) + if ((shutdown_file_path!="") && (stat (shutdown_file_path.c_str(), &buffer) != 0)) return {}; } }