Use XCALLOC / XZALLOC macros where reasonable
[pspp] / src / language / stats / median.c
index 8fa38c5a692134506e5c71ff67255ee2c487378d..2e09ab02cef0d21c621d8dbf6b6ca3eca624a47d 100644 (file)
@@ -253,7 +253,7 @@ median_execute (const struct dataset *ds,
          }
 
        results[v].n = count;
-       results[v].sorted_array = xcalloc (hmap_count (&map), sizeof (void*));
+       results[v].sorted_array = XCALLOC (hmap_count (&map), void*);
        results[v].var = var;
 
        HMAP_FOR_EACH (vn, struct val_node, node, &map)