Replace some calls to xcalloc with XCALLOC
[pspp] / src / language / stats / runs.c
index f5c9979169b9b79ba1ac3ae00a6e47508c20b360..d12bd0d2b52a7239c5d4866bc726edc941e5f6a2 100644 (file)
@@ -116,7 +116,7 @@ runs_execute (const struct dataset *ds,
 
   struct one_sample_test *otp = UP_CAST (test, struct one_sample_test, parent);
   struct runs_test *rt = UP_CAST (otp, struct runs_test, parent);
-  struct run_state *rs = xcalloc (otp->n_vars, sizeof (*rs));
+  struct run_state *rs = XCALLOC (otp->n_vars,  struct run_state);
 
   switch  (rt->cp_mode)
     {