mirror of
https://github.com/golang/go
synced 2024-11-21 20:14:52 -07:00
strconv.Unquote could wrongly return a nil error on error.
R=rsc, gri CC=golang-dev https://golang.org/cl/773041
This commit is contained in:
parent
9ba5ec53ad
commit
a48115bf2e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user