diff options
| author | Carlos Martín Nieto <[email protected]> | 2014-08-25 15:44:01 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <[email protected]> | 2014-08-25 15:44:01 +0200 |
| commit | 106ebe2fc4e856d9217e05d3cfc970d8aac4e190 (patch) | |
| tree | d4f6a283d03c88b116346e1a7f5db9d57523bf8e /index.go | |
| parent | 91fd186186b8e8c8169c79678838ce8114bb89f3 (diff) | |
Handle empty slices in CreateBlobFromBuffer()
Go won't let us access the zeroth alement of an empty slice, so we need
to figure out if the length is zero and take special action.
This fixes #106.
Diffstat (limited to 'index.go')
0 files changed, 0 insertions, 0 deletions
