summaryrefslogtreecommitdiff
path: root/blob.go
diff options
context:
space:
mode:
authorCarlos Martín Nieto <[email protected]>2016-01-15 22:22:36 +0100
committerCarlos Martín Nieto <[email protected]>2016-01-15 22:22:36 +0100
commit2e17c3d55f675f40303e92f001d9cacbb6f827b7 (patch)
treebe077ceb6dc79a8ff2517891278253b1cfd524c6 /blob.go
parent4ee13db86de9321cbea21c04c8608fb8f71735f3 (diff)
parent51d3ead30d58d523cef5aaea1666c8e28a94dc42 (diff)
Merge pull request #280 from ebfe/hint-path
Don't drop CreateBlobFromChunks hintPath argument
Diffstat (limited to 'blob.go')
-rw-r--r--blob.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/blob.go b/blob.go
index b1fc78a..382bb9e 100644
--- a/blob.go
+++ b/blob.go
@@ -84,7 +84,7 @@ func (repo *Repository) CreateBlobFromChunks(hintPath string, callback BlobChunk
var chintPath *C.char = nil
if len(hintPath) > 0 {
- C.CString(hintPath)
+ chintPath = C.CString(hintPath)
defer C.free(unsafe.Pointer(chintPath))
}
oid := C.git_oid{}