From 51d3ead30d58d523cef5aaea1666c8e28a94dc42 Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Mon, 4 Jan 2016 15:02:21 +0100 Subject: [PATCH] Don't drop CreateBlobFromChunks hintPath argument --- blob.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blob.go b/blob.go index b1fc78a9..382bb9e7 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{}