]> granicus.if.org Git - graphviz/commitdiff
Make sure declarations are before any non-declaration statements. Some day
authorEmden R. Gansner <erg@brow1229.research.att.com>
Sun, 21 Jul 2013 01:35:43 +0000 (21:35 -0400)
committerEmden R. Gansner <erg@brow1229.research.att.com>
Sun, 21 Jul 2013 01:35:43 +0000 (21:35 -0400)
Microsoft will move their C compiler into the 21st century.

lib/gvc/gvusershape.c

index a4683ec3405f61d02164f6eaea9c80cae2b85ea4..b9a8a07fce61eed645d0460d55d91dbc143da1ec 100644 (file)
@@ -453,8 +453,8 @@ static void
 getNum (stream_t* str, char* buf)
 {
     int len = 0;
-    skipWS(str);
     char c;
+    skipWS(str);
     while ((c = strc(str)) && (isdigit(c) || (c == '.'))) {
        buf[len++] = c;
        stradv(str);