Commit d5c0d257 authored by Sergei Golubchik's avatar Sergei Golubchik

Bug#42735: dbug treated duplicate keywords (-#d,kw,kw) incorrectly

parent f0261aca
...@@ -1451,7 +1451,9 @@ next: ...@@ -1451,7 +1451,9 @@ next:
{ {
if (!strncmp((*cur)->str, start, len)) if (!strncmp((*cur)->str, start, len))
{ {
if (todo == EXCLUDE) if ((*cur)->flags & todo) /* same action ? */
(*cur)->flags|= subdir; /* just merge the SUBDIR flag */
else if (todo == EXCLUDE)
{ {
struct link *delme=*cur; struct link *delme=*cur;
*cur=(*cur)->next_link; *cur=(*cur)->next_link;
......
...@@ -483,3 +483,14 @@ func2: info: s=ko ...@@ -483,3 +483,14 @@ func2: info: s=ko
| | <func3 | | <func3
| <func2 | <func2
<main <main
# repeated keyword
% ./tests d:-d,info,info
=> execute
=> evaluate: ON
=> evaluate_if: OFF
main: explain: dbug explained: d:-d,info
% ./tests d:-d,info/,info
=> execute
=> evaluate: ON
=> evaluate_if: OFF
main: explain: dbug explained: d:-d,info/
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment