From: Matthew Fernandez <matthew.fernandez@gmail.com> Date: Sun, 25 Sep 2022 17:35:20 +0000 (-0700) Subject: smyrna gvpr_select: remove NULL-hinted call to 'agxbinit' X-Git-Tag: 6.0.2~28^2~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=00efdf51853907b47df197ae62f11a23b3977e34;p=graphviz 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. --- 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);