From: Matthew Fernandez Date: Thu, 15 Dec 2022 16:30:20 +0000 (-0800) Subject: cgraph agxbuf: remove an open coded 'agxbclear' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0dcfe87b5f8414d035dcdbd424525292824ffb96;p=graphviz cgraph agxbuf: remove an open coded 'agxbclear' This will ease some upcoming changes. Gitlab: #2302 --- diff --git a/lib/cgraph/agxbuf.h b/lib/cgraph/agxbuf.h index e2910fea2..9aa45ccdb 100644 --- a/lib/cgraph/agxbuf.h +++ b/lib/cgraph/agxbuf.h @@ -215,7 +215,7 @@ static inline void agxbclear(agxbuf *xb) { xb->size = 0; } */ static inline char *agxbuse(agxbuf *xb) { (void)agxbputc(xb, '\0'); - xb->size = 0; + agxbclear(xb); return xb->buf; }