提交 42bb1040 authored 作者: Stefan Knoblich's avatar Stefan Knoblich

ftmod_pritap: Use strcmp() for "none" and "all" in parse_debug()

Signed-off-by: 's avatarStefan Knoblich <stkn@openisdn.net>
上级 fe4d5748
...@@ -132,12 +132,12 @@ static int parse_debug(const char *in) ...@@ -132,12 +132,12 @@ static int parse_debug(const char *in)
return 0; return 0;
} }
if (strstr(in, "all")) { if (!strcmp(in, "none")) {
return PRI_DEBUG_ALL; return 0;
} }
if (strstr(in, "none")) { if (!strcmp(in, "all")) {
return 0; return PRI_DEBUG_ALL;
} }
if (strstr(in, "q921_all")) { if (strstr(in, "q921_all")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论