From d262e04a707fc8fa784a90c943c9fe21e8d12b1d Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Tue, 21 Nov 2006 13:40:23 +0000 Subject: Fixed thread_test in pjlib-test: the stack buffer for pj_thread_desc may contain the previous registration values, causing the next pj_thread_register() to fail (tested on Linux FC4) git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@817 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pjlib-test/thread.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pjlib/src/pjlib-test/thread.c b/pjlib/src/pjlib-test/thread.c index dc0caed2..e901df7d 100644 --- a/pjlib/src/pjlib-test/thread.c +++ b/pjlib/src/pjlib-test/thread.c @@ -78,6 +78,8 @@ static void* thread_proc(pj_uint32_t *pcounter) id = *pcounter; TRACE__((THIS_FILE, " thread %d running..", id)); + pj_bzero(desc, sizeof(desc)); + rc = pj_thread_register("thread", desc, &this_thread); if (rc != PJ_SUCCESS) { app_perror("...error in pj_thread_register", rc); -- cgit v1.2.3