Initialize ed.used_stdout at the beginning of do_extract() to avoid

reading uninitialized memory later.
Reported by Philip Guenther. Thanks.
This commit is contained in:
matthieu 2009-07-19 08:12:09 +00:00
parent 0d63acfc0e
commit 160be1ef33

View File

@ -1500,6 +1500,7 @@ do_extract(char *inputfilename, int lineno, int argc, char **argv)
ed.fp = NULL; ed.fp = NULL;
ed.filename = argv[1]; ed.filename = argv[1];
ed.used_stdout = False;
ed.numeric = (argv[0][0] == 'n'); ed.numeric = (argv[0][0] == 'n');
ed.nwritten = 0; ed.nwritten = 0;
ed.cmd = argv[0]; ed.cmd = argv[0];