diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-07-19 10:27:49 +0200 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2009-07-19 10:27:49 +0200 |
commit | 6d47c482a198f5421a7007221a69ee24d5f0a2a4 (patch) | |
tree | 42ea671f73f90001c83ac74a4cda7e6dbcc0ed3c | |
parent | b0aec5d07ea5c9fccacf250fe1c665d92243fb61 (diff) |
Initialize ed.used_stdout at the beginning of do_extract()
This avoids reading uninitialized memory later.
Problem reported by Philip Guenther. Thanks.
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr>
-rw-r--r-- | process.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1500,6 +1500,7 @@ do_extract(char *inputfilename, int lineno, int argc, char **argv) ed.fp = NULL; ed.filename = argv[1]; + ed.used_stdout = False; ed.numeric = (argv[0][0] == 'n'); ed.nwritten = 0; ed.cmd = argv[0]; |