From: Matthew Fernandez Date: Sat, 10 Dec 2022 04:08:04 +0000 (-0800) Subject: cgraph: remove initial '\0' store to new agxbuf X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=db5f46061e2cf56ea132fb4c9b7129a4432bcc59;p=graphviz cgraph: remove initial '\0' store to new agxbuf Nothing in the code base relies on this. Callers always use `agxbuse` before relying on the buffer being NUL terminated. Gitlab: #2302 --- diff --git a/lib/cgraph/agxbuf.h b/lib/cgraph/agxbuf.h index ae9e3531a..0dc630ba9 100644 --- a/lib/cgraph/agxbuf.h +++ b/lib/cgraph/agxbuf.h @@ -43,7 +43,6 @@ static inline void agxbinit(agxbuf *xb, unsigned int hint, char *init) { } xb->eptr = xb->buf + hint; xb->ptr = xb->buf; - *xb->ptr = '\0'; } /* agxbfree: