gopack: fix prefix bug

When prefix doesn't match, was deleting entire .6 file.

R=dsymonds
CC=golang-dev
https://golang.org/cl/4427041
This commit is contained in:
Russ Cox 2011-04-14 23:34:14 -04:00
parent 91dfae756e
commit 89fc2c8f4f
1 changed files with 4 additions and 0 deletions

View File

@ -1676,6 +1676,10 @@ arread_cutprefix(Biobuf *b, Armember *bp)
offset = o;
}
}
} else {
// didn't find the whole prefix.
// give up and let it emit the entire name.
inprefix = nil;
}
// copy instructions