aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Mercl <0xjnml@gmail.com>2017-06-06 19:03:58 +0200
committerJan Mercl <0xjnml@gmail.com>2017-06-06 19:03:58 +0200
commit212e4e19afc9ea6da37ed1357839fa16e6f8dcb1 (patch)
tree4451114d2ee003698f38df1810273b5611f996a9
parent05b533496a8384343734af2700e5818a30ff91eb (diff)
Do not ignore bin.Init return value.
modified: sqlite.go
-rw-r--r--sqlite.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/sqlite.go b/sqlite.go
index 9dbb5ad..51bc41d 100644
--- a/sqlite.go
+++ b/sqlite.go
@@ -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())
}