Skip to content

Commit

Permalink
sqlite: fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
crawshaw committed Nov 6, 2018
1 parent 3b4c288 commit ebdf6e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions blob.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,8 @@ func (blob *Blob) ReadAt(p []byte, off int64) (n int, err error) {
if err := blob.conn.interrupted("Blob.ReadAt", ""); err != nil {
return 0, err
}
res := blob.readAt(p, off)
n := C.int(len(p))
res := C.sqlite3_blob_read(blob.blob, unsafe.Pointer(&p[0]), n, C.int(off))
lenp := C.int(len(p))
res := C.sqlite3_blob_read(blob.blob, unsafe.Pointer(&p[0]), lenp, C.int(off))
if err := blob.conn.reserr("Blob.ReadAt", "", res); err != nil {
return 0, err
}
Expand Down

0 comments on commit ebdf6e4

Please sign in to comment.