table: Fix use of uninitialized data.
authorBen Pfaff <blp@cs.stanford.edu>
Mon, 16 Jan 2023 17:54:30 +0000 (09:54 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Mon, 16 Jan 2023 17:54:30 +0000 (09:54 -0800)
Fixes: 62a04ffbf5aa ("output: Combine color and stroke into table_border_style.")
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;
 }