Commit a48115bf authored by Roger Peppe's avatar Roger Peppe Committed by Robert Griesemer

strconv.Unquote could wrongly return a nil error on error.

R=rsc, gri
CC=golang-dev
https://golang.org/cl/773041
parent 9ba5ec53
......@@ -239,7 +239,7 @@ func Unquote(s string) (t string, err os.Error) {
return s, nil
}
if quote != '"' && quote != '\'' {
return "", err
return "", os.EINVAL
}
var buf bytes.Buffer
......
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