From f4bf263b680ffe5dd0befe040b84c179919bbb7d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 16 Jan 2023 09:54:30 -0800 Subject: [PATCH] table: Fix use of uninitialized data. Fixes: 62a04ffbf5aa ("output: Combine color and stroke into table_border_style.") --- src/output/table.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/table.c b/src/output/table.c index f0f95b8669..523a5ea75a 100644 --- a/src/output/table.c +++ b/src/output/table.c @@ -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; } -- 2.30.2