]> granicus.if.org Git - graphviz/commitdiff
Fix bug in command-line attribute declaration. The changes made
authorerg <devnull@localhost>
Thu, 16 Jul 2009 17:13:20 +0000 (17:13 +0000)
committererg <devnull@localhost>
Thu, 16 Jul 2009 17:13:20 +0000 (17:13 +0000)
in version 1.98 to avoid writing on argv input was not correct.

lib/common/input.c

index da11276b17465e35ed7979d2a097b3b973e67c3a..e973de2091a9f78f9c47973ed2f31fb9a4f2a15a 100644 (file)
@@ -180,6 +180,8 @@ static void global_def(agxbuf* xb, char *dcl, int kind,
        agxbput_n (xb, dcl, p-dcl);
         rhs = p+1;
     }
+    else
+       agxbput (xb, dcl);
     sym = dclfun(NULL, kind, agxbuse (xb), rhs);
     sym->fixed = 1;
 }
@@ -195,6 +197,8 @@ static void global_def(agxbuf* xb, char *dcl,
        agxbput_n (xb, dcl, p-dcl);
         rhs = p+1;
     }
+    else
+       agxbput (xb, dcl);
     sym = dclfun(NULL, agxbuse (xb), rhs);
     sym->fixed = 1;
 }