From: Ben Pfaff Date: Mon, 16 Jan 2023 17:54:30 +0000 (-0800) Subject: table: Fix use of uninitialized data. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4bf263b680ffe5dd0befe040b84c179919bbb7d;p=pspp table: Fix use of uninitialized data. Fixes: 62a04ffbf5aa ("output: Combine color and stroke into table_border_style.") --- 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; }