Merge branch 'master' of ssh.github.com:alexeyr/erlang-sqlite3

This commit is contained in:
Alexey Romanov
2012-09-14 15:35:05 +04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
@echo off @echo off
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat" call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\vcvars32.bat"
nmake /f msvc.mk compile_c nmake /f Makefile compile_c

View File

@@ -137,7 +137,7 @@ static void stop(ErlDrvData handle) {
driver_free(driver_data->prepared_stmts); driver_free(driver_data->prepared_stmts);
} }
sqlite3_close(driver_data->db); sqlite3_close(driver_data->db);
if (driver_data->log) { if (driver_data->log && (driver_data->log != stderr)) {
fclose(driver_data->log); fclose(driver_data->log);
} }
driver_data->log = NULL; driver_data->log = NULL;