浏览代码

dialplan: remove unused var from cfg reload function

-reported by Juha Heinanen
Daniel-Constantin Mierla 9 年之前
父节点
当前提交
98a86787bb
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      modules/dialplan/dialplan.c

+ 3 - 2
modules/dialplan/dialplan.c

@@ -455,10 +455,11 @@ error:
 	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;