From: Vsevolod Stakhov Date: Tue, 18 Oct 2016 17:33:41 +0000 (+0100) Subject: [Minor] Fix settings of the metric action score from lua X-Git-Tag: 1.4.0~227 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b914a3aa298b73f49ca508284dbfb5d5ccf657d4;p=thirdparty%2Frspamd.git [Minor] Fix settings of the metric action score from lua --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 863bbd3d84..61f8cf3504 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -1405,7 +1405,7 @@ static gint lua_config_set_metric_action (lua_State * L) { struct rspamd_config *cfg = lua_check_config (L, 1); - const gchar *metric_name = DEFAULT_METRIC, *name = NULL, *flags_str = NULL; + const gchar *metric_name = DEFAULT_METRIC, *name = NULL; double weight; struct metric *metric; GError *err = NULL; @@ -1418,7 +1418,7 @@ lua_config_set_metric_action (lua_State * L) "*action=S;score=N;" "metric=S;priority=N", &name, &weight, - &metric_name, &priority, &flags_str)) { + &metric_name, &priority)) { msg_err_config ("bad arguments: %e", err); g_error_free (err);