diff options
author | Liong Sauw Ming <ming@teluu.com> | 2015-03-05 04:12:16 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2015-03-05 04:12:16 +0000 |
commit | bb996ff44f5c5eb04a6f88c11869a802169ce7b2 (patch) | |
tree | c2fdec78cbd050ae77d43e541306f4e7b67c11cb | |
parent | 3126578bcb9ed8a0d2eb9e9f13e24dc80c117140 (diff) |
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
-rw-r--r-- | pjlib/src/pj/os_core_unix.c | 1 |
1 files changed, 1 insertions, 0 deletions
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. */ |