diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-25 15:49:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-01-25 15:49:27 +0000 |
commit | 5eb9938636b0ef004df7038eeae4fa98c0cb208e (patch) | |
tree | 985c951545ec628357c6aee3d0c209fec63f0ae2 /src/libutil/sqlite_utils.c | |
parent | 8881a3f927d65aa49ba81486f5fb78efafb090bd (diff) | |
download | rspamd-5eb9938636b0ef004df7038eeae4fa98c0cb208e.tar.gz rspamd-5eb9938636b0ef004df7038eeae4fa98c0cb208e.zip |
Fix more issues
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 58abbc67a..270922eb6 100644 --- a/src/libutil/sqlite_utils.c +++ b/src/libutil/sqlite_utils.c @@ -298,7 +298,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 && create_sql != NULL) { + if (access (path, R_OK) == -1) { flags |= SQLITE_OPEN_CREATE; create = TRUE; } |