Replace numerous instances of xzalloc with XZALLOC
[pspp] / src / data / variable.c
index 4859b1303faa3b31e737909c18003b59bbb81fd7..3f32fa5d02b8206b6308db9687475f3a796ed74d 100644 (file)
@@ -128,12 +128,11 @@ static void var_set_name_quiet (struct variable *v, const char *name);
 struct variable *
 var_create (const char *name, int width)
 {
-  struct variable *v;
   enum val_type type;
 
   assert (width >= 0 && width <= MAX_STRING);
 
-  v = xzalloc (sizeof *v);
+  struct variable *v = XZALLOC (struct variable);
   var_set_name_quiet (v, name);
   v->width = width;
   mv_init (&v->miss, width);