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:
parent
0d63acfc0e
commit
160be1ef33
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user