LOGISTIC REGRESSION: Allow fractional confidence interval
[pspp] / src / language / stats / rank.c
index 5f5591adb989fdd25b2c57bc7dc3a7239b4f0919..a29a3fd11f7870a746b1d26c06d8a63eaae96690 100644 (file)
@@ -784,8 +784,8 @@ cmd_rank (struct lexer *lexer, struct dataset *ds)
 
       rs = pool_calloc (rank.pool, 1, sizeof *rs);
       rs->rfunc = RANK;
-      rs->dest_names = pool_calloc (rank.pool, 1, sizeof *rs->dest_names);
-      rs->dest_labels = pool_calloc (rank.pool, 1, sizeof *rs->dest_labels);
+      rs->dest_names = pool_calloc (rank.pool, rank.n_vars,
+                                    sizeof *rs->dest_names);
 
       rank.rs = rs;
       rank.n_rs = 1;