From 678e3bd871cb9d092168ef9cb025cf641e43505d Mon Sep 17 00:00:00 2001 From: Tristan Matthews <tristan.matthews@savoirfairelinux.com> Date: Thu, 2 Aug 2012 11:49:22 -0400 Subject: [PATCH] * #14176: sip_thread_client: zero initialize thread_desc --- daemon/src/sip/sip_thread_client.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/daemon/src/sip/sip_thread_client.cpp b/daemon/src/sip/sip_thread_client.cpp index 76e4977972..5ffd30b1f3 100644 --- a/daemon/src/sip/sip_thread_client.cpp +++ b/daemon/src/sip/sip_thread_client.cpp @@ -30,9 +30,11 @@ #include "sip_thread_client.h" #include "logger.h" +#include <cstring> -SIPThreadClient::SIPThreadClient() : thread_(0) +SIPThreadClient::SIPThreadClient() : thread_(0), desc_() { + memset(desc_, 0, sizeof(desc_)); // We have to register the external thread so it can access the pjsip frameworks if (pj_thread_register(NULL, desc_, &thread_) != PJ_SUCCESS) ERROR("Could not register thread"); -- GitLab