From db5f46061e2cf56ea132fb4c9b7129a4432bcc59 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 9 Dec 2022 20:08:04 -0800 Subject: [PATCH] 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 --- lib/cgraph/agxbuf.h | 1 - 1 file changed, 1 deletion(-) 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: -- 2.50.1