Commit bffaaa0b bffaaa0bbc8384e575aa71cb569a353a6aa3da82 by Sergey Poznyakoff

(_comp_action): Bugfix. Incorrectly handled multiple patterns.

1 parent 0b55d9fe
...@@ -477,7 +477,7 @@ _comp_action (void *item, void *data) ...@@ -477,7 +477,7 @@ _comp_action (void *item, void *data)
477 477
478 d.comp = cp->comp; 478 d.comp = cp->comp;
479 d.test = cp->test; 479 d.test = cp->test;
480 for (i = 0; cp->retr (item, cp->data, i, &d.sample) == 0; i++) 480 for (i = 0; rc == 0 && cp->retr (item, cp->data, i, &d.sample) == 0; i++)
481 if (d.sample) 481 if (d.sample)
482 { 482 {
483 cp->count++; 483 cp->count++;
......