table: Fix use of uninitialized data.
[pspp] / src / output / table.c
index f0f95b8669da6e7de4c8c16092506ec5d36b0e0c..523a5ea75ab1243d1a33a3117567c3a22771fe28 100644 (file)
@@ -270,7 +270,7 @@ table_create (int nc, int nr, int hl, int hr, int ht, int hb)
     .cc = pool_calloc (pool, nr * nc, sizeof *t->cc),
     .cp = pool_calloc (pool, nr * nc, sizeof *t->cp),
     .rh = pool_calloc (pool, nc, nr + 1),
-    .rv = pool_nmalloc (pool, nr, nc + 1),
+    .rv = pool_calloc (pool, nr, nc + 1),
   };
   return t;
 }