From: Matthew Fernandez Date: Sun, 11 Dec 2022 19:54:19 +0000 (-0800) Subject: common parse_style: more tightly scope 'ps_xb' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0841b56996143f346d6e0c50262b43946c540c24;p=graphviz common parse_style: more tightly scope 'ps_xb' --- diff --git a/lib/common/emit.c b/lib/common/emit.c index b6b8265c4..4f959f7f1 100644 --- a/lib/common/emit.c +++ b/lib/common/emit.c @@ -3795,7 +3795,6 @@ static token_t style_token(char **s) { } #define FUNLIMIT 64 -static agxbuf ps_xb; /* parse_style: * This is one of the worst internal designs in graphviz. @@ -3812,6 +3811,7 @@ char **parse_style(char *s) size_t fun = 0; bool in_parens = false; char *p; + static agxbuf ps_xb; p = s; while (true) {