1
0
mirror of https://github.com/golang/go synced 2024-11-12 06:30:21 -07:00

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

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