]> Sergey Matveev's repositories - go-opus.git/commit
Don't crash when passing empty array
authorHraban Luyat <hraban@0brg.net>
Sat, 21 Feb 2015 04:13:56 +0000 (04:13 +0000)
committerHraban Luyat <hraban@0brg.net>
Sat, 21 Feb 2015 04:14:49 +0000 (04:14 +0000)
commit8c9cb6544f87fdfdbb0945aee375bad6aaf24ecb
treea5be6c105ca0405d890ab045187e938152ab290b
parent53e78907ff90f91801a070de788fd519ed1acdc5
Don't crash when passing empty array

Taking the pointer of an array underlying an empty slice is an error in
go: &ar[0] tries to resolve ar[0], which is out of bounds. Not pretty,
but it makes sense.
api.go