]> granicus.if.org Git - graphviz/commitdiff
common parse_style: more tightly scope 'ps_xb'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 11 Dec 2022 19:54:19 +0000 (11:54 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 14 Dec 2022 01:05:42 +0000 (17:05 -0800)
lib/common/emit.c

index b6b8265c446c3aab604fbdc531c5468e6e0f973a..4f959f7f1e53e8116bc226fc3b1b39c055ff9f31 100644 (file)
@@ -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) {