From affd1f291309e63583e1bdd5eb65e843d4ac5ad7 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Wed, 15 Feb 2023 13:33:46 -0800 Subject: [PATCH] cosntruct: Elide empty string append in console recording. --- construct/console.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/construct/console.cc b/construct/console.cc index 6e6436df1..c18bc2b74 100644 --- a/construct/console.cc +++ b/construct/console.cc @@ -348,6 +348,9 @@ construct::console::handle_line_bymodule() append(*record_fd, string_view(cmdline)); } + if(empty(str)) + return; + append(*record_fd, str); }