From 160be1ef332abc19a369c05c7b33ecfc3db4b727 Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 19 Jul 2009 08:12:09 +0000 Subject: [PATCH] Initialize ed.used_stdout at the beginning of do_extract() to avoid reading uninitialized memory later. Reported by Philip Guenther. Thanks. --- app/xauth/process.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/xauth/process.c b/app/xauth/process.c index 52a48686d..893b51d89 100644 --- a/app/xauth/process.c +++ b/app/xauth/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];