Rearrange _thread_test_func to please Coverity Scan
commitdf3812ede144d7bc8dd15f84497b09f39c850157
authorNick Mathewson <nickm@torproject.org>
Mon, 25 Jan 2010 19:12:37 +0000 (25 14:12 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 25 Jan 2010 19:12:37 +0000 (25 14:12 -0500)
tree20b885eff83fb4a46fd2a81efdbfc46bb7ea2711
parent2590d733f4f3c6968bcdcb9880875ea90295ea80
Rearrange _thread_test_func to please Coverity Scan

I believe  that since  we were allocating  *cp while holding  a mutex,
coverity deduced that  *cp must be protected by  that mutex, and later
flipped out  when we didn't  use it  that way. If  this is so,  we can
solve our problems by moving the *cp = tor_strdup(buf) part outside of
the mutex-protected code.
src/test/test_util.c