]> granicus.if.org Git - graphviz/commitdiff
smyrna gvpr_select: remove NULL-hinted call to 'agxbinit'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Sep 2022 17:35:20 +0000 (10:35 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 25 Sep 2022 20:25:40 +0000 (13:25 -0700)
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

index 6e6b04fa04a862e6b1a3d9986ef9c4957f3068a2..cc09dfeef23ff7a244c1475dcd39262892472ad9 100644 (file)
@@ -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);