From 1828874e7f775987d2ce7c8ea7078210821fbc26 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 23 Feb 2015 17:13:19 +0000 Subject: Fix filename setting. --- src/libstat/backends/mmaped_file.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/libstat') 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) { -- cgit v1.2.3