diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libstat/backends/mmaped_file.c | 4 |
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) { |