From: John Darrington Date: Sun, 4 Jul 2010 12:17:32 +0000 (+0200) Subject: Fix uninitialized variable X-Git-Tag: v0.7.6~344 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68896456165f4ee261e3c49eb44f8c81bd1ad653;p=pspp-builds.git Fix uninitialized variable --- diff --git a/src/ui/terminal/terminal-opts.c b/src/ui/terminal/terminal-opts.c index 775e36c4..bfda71e6 100644 --- a/src/ui/terminal/terminal-opts.c +++ b/src/ui/terminal/terminal-opts.c @@ -286,7 +286,7 @@ terminal_opts_init (struct argv_parser *ap, struct source_stream *ss) { struct terminal_opts *to; - to = xmalloc (sizeof *to); + to = xzalloc (sizeof *to); to->source_stream = ss; to->syntax_mode = GETL_BATCH; string_map_init (&to->options);