Fix use of mutex in threaded grep
authorJunio C Hamano <gitster@pobox.com>
Tue, 16 Feb 2010 02:34:28 +0000 (18:34 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 17 Feb 2010 03:19:05 +0000 (19:19 -0800)
The program can decide at runtime not to use threading even if the support
is compiled in. In such a case, mutexes are not necessary and left
uninitialized. But the code incorrectly tried to take and release the
read_sha1_mutex unconditionally.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Acked-by: Fredrik Kuivinen <frekui@gmail.com>
No differences found