]> Cypherpunks repositories - gostls13.git/commitdiff
gc: fix [568]g -V crash
authorMikio Hara <mikioh.mikioh@gmail.com>
Wed, 26 Oct 2011 07:16:46 +0000 (16:16 +0900)
committerMikio Hara <mikioh.mikioh@gmail.com>
Wed, 26 Oct 2011 07:16:46 +0000 (16:16 +0900)
R=lvd
CC=golang-dev
https://golang.org/cl/5314060

src/cmd/gc/lex.c

index 1d7f0e82e34a5ed7259232e57a738f3eb4d58137..6e66b502fb56b1c4bbd984f2b7833f99d9406e78 100644 (file)
@@ -229,7 +229,7 @@ main(int argc, char *argv[])
                p = expstring();
                if(strcmp(p, "X:none") == 0)
                        p = "";
-               print("%cg version %s%s%s%s\n", thechar, getgoversion(), *p ? " " : "", p);
+               print("%cg version %s%s%s\n", thechar, getgoversion(), *p ? " " : "", p);
                exits(0);
        } ARGEND