aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/sqlite_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-25 16:57:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-25 16:57:50 +0100
commit67f20b684d802fd534c9d43e163d2b52a6cdddd6 (patch)
tree182c89b9eacc160e34eaf6af614f51f91c493586 /src/libutil/sqlite_utils.c
parent70f966f3b052fe23c9a0845fae69d240c5f5cc85 (diff)
downloadrspamd-67f20b684d802fd534c9d43e163d2b52a6cdddd6.tar.gz
rspamd-67f20b684d802fd534c9d43e163d2b52a6cdddd6.zip
Start fuzzy_merge command.
Diffstat (limited to 'src/libutil/sqlite_utils.c')
-rw-r--r--src/libutil/sqlite_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/sqlite_utils.c b/src/libutil/sqlite_utils.c
index e58921a1a..0dea2edc2 100644
--- a/src/libutil/sqlite_utils.c
+++ b/src/libutil/sqlite_utils.c
@@ -273,7 +273,7 @@ rspamd_sqlite3_open_or_create (rspamd_mempool_t *pool, const gchar *path, const
rspamd_snprintf (lock_path, sizeof (lock_path), "%s.lock", path);
- if (access (path, R_OK) == -1) {
+ if (access (path, R_OK) == -1 && create_sql != NULL) {
flags |= SQLITE_OPEN_CREATE;
create = TRUE;
}