Skip to content

Commit 3e7a75c

Browse files
committed
[capture] don't save any empty stdin
1 parent 5266054 commit 3e7a75c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lnav.cc

+1
Original file line numberDiff line numberDiff line change
@@ -3301,6 +3301,7 @@ SELECT tbl_name FROM sqlite_master WHERE sql LIKE 'CREATE VIRTUAL TABLE%'
33013301
}
33023302
if (!ghc::filesystem::exists(stdin_tmp_path)
33033303
|| verbosity == verbosity_t::quiet || !stdin_size
3304+
|| stdin_size.value() == 0
33043305
|| stdin_size.value() > MAX_STDIN_CAPTURE_SIZE)
33053306
{
33063307
std::error_code rm_err_code;

0 commit comments

Comments
 (0)