[capture] don't save any empty stdin

This commit is contained in:
Tim Stack 2022-12-27 20:58:29 -08:00
parent 5266054af0
commit 3e7a75c00b

View File

@ -3301,6 +3301,7 @@ SELECT tbl_name FROM sqlite_master WHERE sql LIKE 'CREATE VIRTUAL TABLE%'
}
if (!ghc::filesystem::exists(stdin_tmp_path)
|| verbosity == verbosity_t::quiet || !stdin_size
|| stdin_size.value() == 0
|| stdin_size.value() > MAX_STDIN_CAPTURE_SIZE)
{
std::error_code rm_err_code;