commit 4409b275fcd22db41f044a6cf73eacf20997ec87
parent 8848ac5a9b78acde38987dd0071cad0749ac2380
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 1 Mar 2020 17:06:34 +0100
tweaks: avoid a complaint about uninitialized memory [valgrind]
This addresses https://savannah.gnu.org/bugs/?57932.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/text.c b/src/text.c
@@ -930,7 +930,7 @@ bool execute_command(const char *command)
/* The pipes through which text will be written and read. */
const bool should_pipe = (command[0] == '|');
FILE *stream;
- struct sigaction oldaction, newaction;
+ struct sigaction oldaction, newaction = {{0}};
/* Original and temporary handlers for SIGINT. */
/* Create a pipe to read the command's output from, and, if needed,