diff --git a/daemon/src/sip/sip_thread_client.cpp b/daemon/src/sip/sip_thread_client.cpp index 76e49779728698382b618b4879fbd0f78c4fcbf7..5ffd30b1f37dcb064883d13e2f8007b2c8fd6e48 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");