Unify code paths of threaded greps
commit8192aafc1dcd6dcaa821074036e530f2c86cdbe0
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sun, 7 Feb 2010 18:58:28 +0000 (7 19:58 +0100)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 28 Apr 2010 14:25:02 +0000 (28 16:25 +0200)
treea81575dd8238a9fa9658f0737653a213721f32aa
parente6324e36afc5780c385ae218dadfc935be93f836
Unify code paths of threaded greps

There were two 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