[dovecot-cvs] dovecot/src/lib-sql driver-sqlite.c,1.4,1.5

cras at dovecot.org cras at dovecot.org
Fri Jan 27 17:44:42 EET 2006


Update of /var/lib/cvs/dovecot/src/lib-sql
In directory talvi:/tmp/cvs-serv20050

Modified Files:
	driver-sqlite.c 
Log Message:
Cleanups.



Index: driver-sqlite.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-sql/driver-sqlite.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- driver-sqlite.c	26 Jan 2006 23:00:11 -0000	1.4
+++ driver-sqlite.c	27 Jan 2006 15:44:40 -0000	1.5
@@ -5,8 +5,6 @@
 #include "sql-api-private.h"
 
 #ifdef BUILD_SQLITE
-#include <stdlib.h>
-#include <time.h>
 #include <sqlite3.h>
 
 /* retry time if db is busy (in ms) */
@@ -143,6 +141,9 @@
 	struct sqlite_db *db = (struct sqlite_db *)	result->api.db;
 	int rc;
 
+	if (_result->callback)
+		return;
+
 	if (result->stmt != NULL) {
 		if ((rc = sqlite3_finalize(result->stmt)) != SQLITE_OK) {
 			i_warning("sqlite: finalize failed: %s (%d)",



More information about the dovecot-cvs mailing list