From 00efdf51853907b47df197ae62f11a23b3977e34 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sun, 25 Sep 2022 10:35:20 -0700 Subject: [PATCH] smyrna gvpr_select: remove NULL-hinted call to 'agxbinit' Reverting 656a15f855a31acc6eeb162284b89ad3367253b9 reintroduced a NULL-hinted call to `agxbinit`. But in the meantime, db5dc6497e86b886a41d52ea13f0598ecaa9c296 removed all such uses replacing them with an equivalent zero initialization. This commit updates the `gvpr_select` usage to be in line with other usage in the current Graphviz tree. --- cmd/smyrna/gui/frmobjectui.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/smyrna/gui/frmobjectui.c b/cmd/smyrna/gui/frmobjectui.c index 6e6b04fa0..cc09dfeef 100644 --- a/cmd/smyrna/gui/frmobjectui.c +++ b/cmd/smyrna/gui/frmobjectui.c @@ -710,8 +710,7 @@ static void gvpr_select(char *attrname, char *regex_str, int objType) { int i, argc; char **argv; - agxbuf sf; - agxbinit(&sf, 0, NULL); + agxbuf sf = {0}; if (objType == AGNODE) agxbprint(&sf, "N[%s==\"%s\"]{selected = \"1\"}", attrname, regex_str); -- 2.50.1