diff options
author | Roger Peppe <rogpeppe@gmail.com> | 2010-03-29 10:09:29 -0700 |
---|---|---|
committer | Roger Peppe <rogpeppe@gmail.com> | 2010-03-29 10:09:29 -0700 |
commit | e574ea3f37fd2ede74999b49cd2616c2bfaede45 (patch) | |
tree | a35ac09275bed2464f5a63fd67301408bebd768a /src/pkg/strconv | |
parent | eb754093fd89e5048531d4bc1d65df74eafd429b (diff) | |
download | golang-e574ea3f37fd2ede74999b49cd2616c2bfaede45.tar.gz |
strconv.Unquote could wrongly return a nil error on error.
R=rsc, gri
CC=golang-dev
http://codereview.appspot.com/773041
Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/pkg/strconv')
-rw-r--r-- | src/pkg/strconv/quote.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/strconv/quote.go b/src/pkg/strconv/quote.go index ccd106264..53774ee6f 100644 --- a/src/pkg/strconv/quote.go +++ b/src/pkg/strconv/quote.go @@ -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 |