aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstat
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-23 17:13:19 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-02-23 17:13:19 +0000
commit1828874e7f775987d2ce7c8ea7078210821fbc26 (patch)
tree939ae5d589b294fc8ea34880eeca8c4a10a61f71 /src/libstat
parent629938bacad71fd6754d96e6a524463fe438bac5 (diff)
downloadrspamd-1828874e7f775987d2ce7c8ea7078210821fbc26.tar.gz
rspamd-1828874e7f775987d2ce7c8ea7078210821fbc26.zip
Fix filename setting.
Diffstat (limited to 'src/libstat')
-rw-r--r--src/libstat/backends/mmaped_file.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstat/backends/mmaped_file.c b/src/libstat/backends/mmaped_file.c
index dc4c1c599..2eaf6c638 100644
--- a/src/libstat/backends/mmaped_file.c
+++ b/src/libstat/backends/mmaped_file.c
@@ -877,8 +877,10 @@ rspamd_mmaped_file_runtime (struct rspamd_statfile_config *stcf, gboolean learn,
}
}
+ filename = ucl_object_tostring (filenameo);
+
if (learn) {
- filename = ucl_object_tostring (filenameo);
+
sizeo = ucl_object_find_key (stcf->opts, "size");
if (sizeo == NULL || ucl_object_type (sizeo) != UCL_INT) {