From bb996ff44f5c5eb04a6f88c11869a802169ce7b2 Mon Sep 17 00:00:00 2001 From: Liong Sauw Ming Date: Thu, 5 Mar 2015 04:12:16 +0000 Subject: Re #1782 (misc): Fixed unitialized mutex owner variable when creating mutex git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4990 74dad513-b988-da41-8d7b-12977e46ad98 --- pjlib/src/pj/os_core_unix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pjlib/src/pj/os_core_unix.c b/pjlib/src/pj/os_core_unix.c index 9f8578a1..8ec0cdb7 100644 --- a/pjlib/src/pj/os_core_unix.c +++ b/pjlib/src/pj/os_core_unix.c @@ -1170,6 +1170,7 @@ static pj_status_t init_mutex(pj_mutex_t *mutex, const char *name, int type) /* Set owner. */ mutex->nesting_level = 0; mutex->owner = NULL; + mutex->owner_name[0] = '\0'; #endif /* Set name. */ -- cgit v1.2.3