From 8a2e3e8ad4c5cf0f4eb25d5c875ce03733dbe41a Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Thu, 9 Dec 2010 17:08:24 +0300 Subject: [PATCH] Forgot to initialize some fields in the structure --- c_src/sqlite3_drv.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/c_src/sqlite3_drv.c b/c_src/sqlite3_drv.c index f4b1b9e..d34ce88 100644 --- a/c_src/sqlite3_drv.c +++ b/c_src/sqlite3_drv.c @@ -80,6 +80,10 @@ static ErlDrvData start(ErlDrvPort port, char* cmd) { retval->key = 42; // FIXME Any way to get canonical path to the DB? // We need to ensure equal keys for different paths to the same file + retval->async_handle = 0; + retval->prepared_stmts = NULL; + retval->prepared_count = 0; + retval->prepared_alloc = 0; retval->atom_blob = driver_mk_atom("blob"); retval->atom_error = driver_mk_atom("error");