mirror of
https://github.com/golang/go
synced 2024-11-22 02:24:41 -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
|
return s, nil
|
||||||
}
|
}
|
||||||
if quote != '"' && quote != '\'' {
|
if quote != '"' && quote != '\'' {
|
||||||
return "", err
|
return "", os.EINVAL
|
||||||
}
|
}
|
||||||
|
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user