From 98a86787bb0c8dffb737f9f8408207780fb14f0d Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 18 Jul 2016 08:10:20 +0200 Subject: [PATCH] dialplan: remove unused var from cfg reload function -reported by Juha Heinanen --- modules/dialplan/dialplan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/dialplan/dialplan.c b/modules/dialplan/dialplan.c index a0c679af314..258dd539898 100644 --- a/modules/dialplan/dialplan.c +++ b/modules/dialplan/dialplan.c @@ -455,10 +455,11 @@ static int dp_trans_fixup(void ** param, int param_no){ return E_INVALID_PARAMS; } +/** + * trigger reload of dialplan db records from config file + */ static int dp_reload_f(struct sip_msg* msg) { - struct mi_root* rpl_tree= NULL; - if (dp_connect_db() < 0) { LM_ERR("failed to reload rules fron database (db connect)\n"); return -1;