summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2009-07-19 10:27:49 +0200
committerMatthieu Herrb <matthieu.herrb@laas.fr>2009-07-19 10:27:49 +0200
commit6d47c482a198f5421a7007221a69ee24d5f0a2a4 (patch)
tree42ea671f73f90001c83ac74a4cda7e6dbcc0ed3c
parentb0aec5d07ea5c9fccacf250fe1c665d92243fb61 (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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/process.c b/process.c
index 52a4868..893b51d 100644
--- a/process.c
+++ b/process.c
@@ -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];