From 92f580b350d88e068bfbe223ea51f64044c0f280 Mon Sep 17 00:00:00 2001 From: Yunus Ayar Date: Fri, 2 Oct 2020 10:13:14 +0200 Subject: [PATCH] Fix #860 extenstion entry bug (#861) Fix overshadowing of entrypoint variable. --- sqlite3_load_extension.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite3_load_extension.go b/sqlite3_load_extension.go index e6c50f2..f241819 100644 --- a/sqlite3_load_extension.go +++ b/sqlite3_load_extension.go @@ -68,7 +68,7 @@ func (c *SQLiteConn) loadExtension(lib string, entry *string) error { var centry *C.char if entry != nil { - centry := C.CString(*entry) + centry = C.CString(*entry) defer C.free(unsafe.Pointer(centry)) }