]> Cypherpunks repositories - gostls13.git/commitdiff
libmach: fix build
authorRuss Cox <rsc@golang.org>
Sun, 10 Mar 2013 18:45:57 +0000 (14:45 -0400)
committerRuss Cox <rsc@golang.org>
Sun, 10 Mar 2013 18:45:57 +0000 (14:45 -0400)
I guess it would be too much to ask for gcc on my machine to give
the same errors as gcc on the builder machines.

R=ken2
CC=golang-dev
https://golang.org/cl/7686044

src/libmach/executable.c

index 6d0bc2088813cad14864ce42c797cfc91ebdf6c9..1dd81dc9c98df8a2cd356bdfbaeb17a9414deb4d 100644 (file)
@@ -1116,6 +1116,10 @@ machdotout(int fd, Fhdr *fp, ExecHdr *hp)
        textsize = 0;
        datasize = 0;
        bsssize = 0;
+       symoff = 0;
+       symsize = 0;
+       pclnoff = 0;
+       pclnsize = 0;
        for (i = 0; i < mp->ncmds; i++) {
                MachCmd *c;