Do not ignore bin.Init return value.

modified:   sqlite.go
This commit is contained in:
Jan Mercl
2017-06-06 19:03:58 +02:00
parent 05b533496a
commit 212e4e19af

View File

@@ -41,7 +41,10 @@ const (
)
func init() {
bin.Init(heapSize, heapReserve)
if v := bin.Init(heapSize, heapReserve); v != 0 {
panic(fmt.Errorf("initialization failed: %v", v))
}
sql.Register(driverName, newDrv())
}