summaryrefslogtreecommitdiff
path: root/dbug/dbug.c
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mysql.com>2009-02-10 19:13:24 +0100
committerSergei Golubchik <serg@mysql.com>2009-02-10 19:13:24 +0100
commitd5c0d257923221458aec7b01dbf538dbb9aaea4b (patch)
treeb01dd73c46d0f9cdf698b0f0104f888860a01a92 /dbug/dbug.c
parentf0261aca0b6a30b1de382515cb968d45924439a8 (diff)
downloadmariadb-git-d5c0d257923221458aec7b01dbf538dbb9aaea4b.tar.gz
Bug#42735: dbug treated duplicate keywords (-#d,kw,kw) incorrectly
Diffstat (limited to 'dbug/dbug.c')
-rw-r--r--dbug/dbug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index fc2faf867e4..1e18fb3eab0 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -1451,7 +1451,9 @@ next:
{
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;
*cur=(*cur)->next_link;