Fix uninitialized variable
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jul 2010 12:17:32 +0000 (14:17 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 4 Jul 2010 12:17:32 +0000 (14:17 +0200)
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);