From 3e7a75c00bb8ea5ae883cc14b5b825b6a398df6d Mon Sep 17 00:00:00 2001 From: Tim Stack Date: Tue, 27 Dec 2022 20:58:29 -0800 Subject: [PATCH] [capture] don't save any empty stdin --- src/lnav.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lnav.cc b/src/lnav.cc index b47dfc65..00e8da76 100644 --- a/src/lnav.cc +++ b/src/lnav.cc @@ -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;