summaryrefslogtreecommitdiff
path: root/pjlib
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2006-11-21 13:40:23 +0000
committerBenny Prijono <bennylp@teluu.com>2006-11-21 13:40:23 +0000
commitd262e04a707fc8fa784a90c943c9fe21e8d12b1d (patch)
tree78443d97ada5c430b1f9d59a06b1c73d41d82dc9 /pjlib
parent701dac2c34042d6859075526fab69b22d7e2acad (diff)
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
Diffstat (limited to 'pjlib')
-rw-r--r--pjlib/src/pjlib-test/thread.c2
1 files changed, 2 insertions, 0 deletions
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);