From 70890d069cb435ef1f5b0b1b795db35a607f1ce8 Mon Sep 17 00:00:00 2001 From: John Jacquay Date: Thu, 5 Jul 2018 15:36:55 -0400 Subject: [PATCH] Bug fix --- collection.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/collection.go b/collection.go index d3169b7..c681fe9 100644 --- a/collection.go +++ b/collection.go @@ -254,7 +254,8 @@ func CreateCollection(name string, coll *Collection) (*Collection, error) { errMsg *C.char ) - path := C.CString(coll.path + "/" + name) + newColPath := coll.path + "/" + name + path := C.CString(newColPath) defer C.free(unsafe.Pointer(path)) @@ -271,7 +272,7 @@ func CreateCollection(name string, coll *Collection) (*Collection, error) { //newCol := coll.Cd(name) return coll.Con().Collection(CollectionOptions{ - Path: path, + Path: newColPath, }) }