Replace numerous instances of xzalloc with XZALLOC
[pspp] / src / ui / terminal / terminal-opts.c
index 5a6a8fbd236acc335982f816d5e7d78c8394f74e..b9d9e50c589c9ae0507bdadc575223dc7eac40b2 100644 (file)
@@ -263,13 +263,11 @@ terminal_opts_init (struct argv_parser *ap,
                     enum segmenter_mode *syntax_mode, bool *process_statrc,
                     char **syntax_encoding)
 {
-  struct terminal_opts *to;
-
   *syntax_mode = SEG_MODE_AUTO;
   *process_statrc = true;
   *syntax_encoding = "Auto";
 
-  to = xzalloc (sizeof *to);
+  struct terminal_opts *to = XZALLOC (struct terminal_opts);
   to->syntax_mode = syntax_mode;
   string_map_init (&to->options);
   to->has_output_driver = false;