From b2b523be98caae2e831978622f28a4b00559959c Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Thu, 13 Oct 2022 21:01:46 -0700 Subject: [PATCH] common pos_html_cell: fix unchecked allocation failure --- lib/common/htmltable.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/common/htmltable.c b/lib/common/htmltable.c index 47e2a9133..1520325e8 100644 --- a/lib/common/htmltable.c +++ b/lib/common/htmltable.c @@ -1530,7 +1530,7 @@ static void pos_html_cell(htmlcell_t * cp, boxf pos, int sides) boxf cbox; if (!cp->data.pencolor && cp->parent->data.pencolor) - cp->data.pencolor = strdup(cp->parent->data.pencolor); + cp->data.pencolor = gv_strdup(cp->parent->data.pencolor); /* If fixed, align cell */ if (cp->data.flags & FIXED_FLAG) { -- 2.40.0