dtmail: resolve coverity warnings related to uninitialised members in C++ classes
This commit is contained in:
@@ -397,6 +397,7 @@ DtMailEnv::DtMailEnv()
|
||||
_client = NULL;
|
||||
_implClearFunc = NULL;
|
||||
_fatal = DTM_FALSE;
|
||||
_error_minor_code = DTME_NoError;
|
||||
}
|
||||
|
||||
#ifdef hpV4
|
||||
|
||||
@@ -68,6 +68,8 @@ DtMail::MailBox::MailBox(DtMailEnv & error,
|
||||
_callback = cb;
|
||||
_cb_data = clientData;
|
||||
_obj_mutex = MutexInit();
|
||||
_mail_box_writable = DTM_FALSE;
|
||||
_default_mode = 0;
|
||||
}
|
||||
|
||||
DtMail::MailBox::~MailBox(void)
|
||||
|
||||
@@ -246,8 +246,11 @@ Condition::Condition(void)
|
||||
#if defined(POSIX_THREADS)
|
||||
_condition = malloc(sizeof(cond_t));
|
||||
cond_init((cond_t *)_condition, USYNC_THREAD, NULL);
|
||||
#else
|
||||
_condition = NULL;
|
||||
#endif
|
||||
|
||||
_state = 0;
|
||||
}
|
||||
|
||||
Condition::~Condition(void)
|
||||
|
||||
@@ -53,6 +53,7 @@ RFCFormat::RFCFormat(DtMail::Session * session)
|
||||
{
|
||||
_session = session;
|
||||
_is_write_bcc = DTM_FALSE;
|
||||
_use_cr = DTM_FALSE;
|
||||
}
|
||||
|
||||
RFCFormat::~RFCFormat(void)
|
||||
|
||||
@@ -71,6 +71,7 @@ RFCValue::RFCValue(const char * str, int size) : DtMailValue(NULL)
|
||||
_value[size] = 0;
|
||||
|
||||
_decoded = NULL;
|
||||
_session = NULL;
|
||||
}
|
||||
|
||||
RFCValue::RFCValue(const char * str, int size, DtMail::Session *s) : DtMailValue(NULL)
|
||||
|
||||
@@ -129,6 +129,9 @@ RFCTransport::RFCTransport(DtMailEnv & error,
|
||||
// Set up the handlers so that we are notified when a child
|
||||
// process exits and do the right thing.
|
||||
signalRegister();
|
||||
|
||||
_error_proc = NULL;
|
||||
_smd = NULL;
|
||||
}
|
||||
|
||||
RFCTransport::~RFCTransport(void)
|
||||
|
||||
Reference in New Issue
Block a user