Fix #860 extenstion entry bug (#861)

Fix overshadowing of entrypoint variable.
This commit is contained in:
Yunus Ayar 2020-10-02 10:13:14 +02:00 committed by GitHub
parent 4120733fec
commit 92f580b350
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (c *SQLiteConn) loadExtension(lib string, entry *string) error {
var centry *C.char var centry *C.char
if entry != nil { if entry != nil {
centry := C.CString(*entry) centry = C.CString(*entry)
defer C.free(unsafe.Pointer(centry)) defer C.free(unsafe.Pointer(centry))
} }