Fix uninitialized variable
[pspp-builds.git] / src / ui / terminal / terminal-opts.c
index 775e36c44bb6238c18417716ebf87fd29aee9cc8..bfda71e66cd2e9dc3750721d1200a5cfd955820f 100644 (file)
@@ -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);