diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-25 16:57:50 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-09-25 16:57:50 +0100 |
commit | 67f20b684d802fd534c9d43e163d2b52a6cdddd6 (patch) | |
tree | 182c89b9eacc160e34eaf6af614f51f91c493586 /src/libutil/sqlite_utils.c | |
parent | 70f966f3b052fe23c9a0845fae69d240c5f5cc85 (diff) | |
download | rspamd-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.c | 2 |
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; } |