diff options
author | Yunus Ayar <greybley@yahoo.de> | 2020-10-02 10:13:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-02 17:13:14 +0900 |
commit | 92f580b350d88e068bfbe223ea51f64044c0f280 (patch) | |
tree | a196933d8b589f53898011b1c0c6da4b66ac135c /sqlite3_load_extension.go | |
parent | Add build tag ignore for upgrade script (#851) (diff) | |
download | golite-92f580b350d88e068bfbe223ea51f64044c0f280.tar.gz golite-92f580b350d88e068bfbe223ea51f64044c0f280.tar.xz |
Fix #860 extenstion entry bug (#861)
Fix overshadowing of entrypoint variable.
Diffstat (limited to 'sqlite3_load_extension.go')
-rw-r--r-- | sqlite3_load_extension.go | 2 |
1 files changed, 1 insertions, 1 deletions
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)) } |