diff --git a/src/cmd/dist/buildgc.c b/src/cmd/dist/buildgc.c index 178fbf9137f..66adf6857c7 100644 --- a/src/cmd/dist/buildgc.c +++ b/src/cmd/dist/buildgc.c @@ -69,7 +69,7 @@ gcopnames(char *dir, char *file) void mkanames(char *dir, char *file) { - int i, ch; + int i, j, ch; Buf in, b, out, out2; Vec lines; char *p; @@ -108,6 +108,7 @@ mkanames(char *dir, char *file) } bwritestr(&out, "};\n"); + j=0; bprintf(&out2, "char* cnames%c[] = {\n", ch); for(i=0; i0) + bwriteb(&out, &out2); writefile(&out, file, 0);