From 3fdd2eda63e2f2775b00f28e90659237f7769f98 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 9 Dec 2022 20:41:44 -0800 Subject: [PATCH] common protect_rsqb: remove an open coded 'agxblen' Gitlab: #2302 --- lib/common/htmllex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.50.1