浏览代码

nameaddr.params corrected (when used from nested selects)

Michal Matyska 19 年之前
父节点
当前提交
eefc1a3ab0
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      select_core.h

+ 1 - 2
select_core.h

@@ -190,9 +190,8 @@ static select_row_t select_core[] = {
 
 	{ select_any_nameaddr, SEL_PARAM_STR, STR_STATIC_INIT("name"), select_nameaddr_name, 0},
 	{ select_any_nameaddr, SEL_PARAM_STR, STR_STATIC_INIT("uri"), select_nameaddr_uri, 0},
-	{ select_any_nameaddr, SEL_PARAM_STR, STR_STATIC_INIT("params"), select_nameaddr_params, 0},
+	{ select_any_nameaddr, SEL_PARAM_STR, STR_STATIC_INIT("params"), select_nameaddr_params, OPTIONAL | CONSUME_NEXT_STR},
 	{ select_nameaddr_uri, SEL_PARAM_INT, STR_NULL, select_any_uri, NESTED},
-	{ select_nameaddr_params, SEL_PARAM_STR, STR_NULL, select_any_params, 0},
 
 	{ NULL, SEL_PARAM_STR, STR_STATIC_INIT("msg"), select_msgheader, SEL_PARAM_EXPECTED},
 	{ select_msgheader, SEL_PARAM_STR, STR_NULL, select_anyheader, OPTIONAL | CONSUME_NEXT_INT | FIXUP_CALL},