Unify code paths of threaded greps
commit153c9e65cb79c71fdc3fc5f89e8ac2ec3446d0b8
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 18:58:28 +0000 (7 19:58 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 18:58:28 +0000 (7 19:58 +0100)
treedfd2c53e23249da8e5b9400b140a9bb125bacf9b
parent7637d672015507a892fc550b58fa639e4884cdd0
Unify code paths of threaded greps

There were three awfully similar code paths ending the threaded grep. It
is better to avoid duplicated code, though.

This change might very well prevent a race, where the grep patterns were
free()d before waiting that all threads finished.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
builtin-grep.c