fix build

R=r
CC=golang-dev
https://golang.org/cl/790041
This commit is contained in:
Robert Griesemer 2010-03-26 16:33:59 -07:00
parent 7ffe938f08
commit 5a716206a4
1 changed files with 1 additions and 1 deletions

View File

@ -615,7 +615,7 @@ func CompileRegexp(str string) (regexp *Regexp, error string) {
regexp.expr = str
regexp.inst = make([]instr, 0, 20)
error = regexp.doParse()
if error != nil {
if error != "" {
regexp = nil
}
return