summaryrefslogtreecommitdiff
path: root/src/pkg/strconv/quote.go
diff options
context:
space:
mode:
authorRoger Peppe <rogpeppe@gmail.com>2010-03-29 10:09:29 -0700
committerRoger Peppe <rogpeppe@gmail.com>2010-03-29 10:09:29 -0700
commite574ea3f37fd2ede74999b49cd2616c2bfaede45 (patch)
treea35ac09275bed2464f5a63fd67301408bebd768a /src/pkg/strconv/quote.go
parenteb754093fd89e5048531d4bc1d65df74eafd429b (diff)
downloadgolang-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/quote.go')
-rw-r--r--src/pkg/strconv/quote.go2
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