From: Matthew Fernandez Date: Sat, 10 Dec 2022 04:41:44 +0000 (-0800) Subject: common protect_rsqb: remove an open coded 'agxblen' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3fdd2eda63e2f2775b00f28e90659237f7769f98;p=graphviz common protect_rsqb: remove an open coded 'agxblen' Gitlab: #2302 --- diff --git a/lib/common/htmllex.c b/lib/common/htmllex.c index ca3ed3b60..2c8febc3f 100644 --- a/lib/common/htmllex.c +++ b/lib/common/htmllex.c @@ -882,7 +882,7 @@ static char *findNext(char *s, agxbuf* xb) static void protect_rsqb(agxbuf *xb) { // if the buffer is empty, we have nothing to do - if (xb->buf == xb->ptr) { + if (agxblen(xb) == 0) { return; }