]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Fix filename setting.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Feb 2015 17:13:19 +0000 (17:13 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 23 Feb 2015 17:13:19 +0000 (17:13 +0000)
src/libstat/backends/mmaped_file.c

index dc4c1c5994c7aca729058219eecd8180901a38d7..2eaf6c638e75829a7f4168b9b1ceeaf5e7674cfd 100644 (file)
@@ -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) {