The use of the  index is not compatible with an empty string.
However sometimes SETSOCKOPT with empty string is required, it would be nice to be able to do so without having to resort to use syscall.Syscall6 (for arm as an example) or whatever architecture dependent equivalent.
The text was updated successfully, but these errors were encountered:
Don't panic with "index out of range" on empty string argument.
Follows CL 170937 which did the sane for package syscall.
Run-TryBot: Tobias Klauser <firstname.lastname@example.org>
TryBot-Result: Gobot Gobot <email@example.com>
Reviewed-by: Brad Fitzpatrick <firstname.lastname@example.org>