Commit 5a716206 authored by Robert Griesemer's avatar Robert Griesemer

fix build

R=r
CC=golang-dev
https://golang.org/cl/790041
parent 7ffe938f
...@@ -615,7 +615,7 @@ func CompileRegexp(str string) (regexp *Regexp, error string) { ...@@ -615,7 +615,7 @@ func CompileRegexp(str string) (regexp *Regexp, error string) {
regexp.expr = str regexp.expr = str
regexp.inst = make([]instr, 0, 20) regexp.inst = make([]instr, 0, 20)
error = regexp.doParse() error = regexp.doParse()
if error != nil { if error != "" {
regexp = nil regexp = nil
} }
return return
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment