mirror of
https://github.com/rwinkhart/sys.git
synced 2026-09-05 08:37:31 -04:00
unix: don't allocate putting common errno values in error interfaces
From main repo: https://go-review.googlesource.com/#/c/6701/3 Fixes golang/go#10266 Change-Id: I141fefe7f317edcea19b588b1569fa8772237f56 Reviewed-on: https://go-review.googlesource.com/8190 Reviewed-by: Rob Pike <r@golang.org>
This commit is contained in:
+1
-1
@@ -284,7 +284,7 @@ while(<>) {
|
||||
$text .= "\t}\n";
|
||||
} elsif ($do_errno) {
|
||||
$text .= "\tif e1 != 0 {\n";
|
||||
$text .= "\t\terr = e1\n";
|
||||
$text .= "\t\terr = errnoErr(e1)\n";
|
||||
$text .= "\t}\n";
|
||||
}
|
||||
$text .= "\treturn\n";
|
||||
|
||||
Reference in New Issue
Block a user