dtmail: resolve coverity warnings related to uninitialised members in C++ classes

This commit is contained in:
Peter Howkins
2018-04-20 02:36:24 +01:00
parent 3464e80165
commit f905d25392
31 changed files with 199 additions and 2 deletions

View File

@@ -149,6 +149,10 @@ Application::Application ( char *appClassName ) :
_numWindows = 0;
_shutdownEnabled = 1;
_applicationClass = strdup ( appClassName );
_appWorkspaceList = NULL;
_lastInteractiveEventTime = 0;
_originalEgid = 0;
_originalRgid = 0;
}
void Application::initialize ( int *argcp, char **argv )

View File

@@ -69,7 +69,9 @@
#define PIXMAPSIZE 50
BusyPixmap::BusyPixmap ( Widget w ) :
PixmapCycler ( NUMPIXMAPS, PIXMAPSIZE, PIXMAPSIZE )
PixmapCycler ( NUMPIXMAPS, PIXMAPSIZE, PIXMAPSIZE ),
_gc(NULL),
_inverseGC(NULL)
{
_w = w;
}

View File

@@ -82,6 +82,7 @@ Cmd::Cmd ( char *name, char *label, int active )
_activationList = NULL;
_deactivationList = NULL;
_hasUndo = TRUE;
_previouslyActive = 0;
if (label) {
_label = strdup(label);

View File

@@ -82,6 +82,7 @@ CmdList::CmdList(char *name, char *label ) : Cmd(name, label, 1)
_contents = 0;
_numElements = 0;
_pane = NULL;
}
CmdList::~CmdList()

View File

@@ -107,6 +107,10 @@ MainWindow::MainWindow( char *name, Boolean allowResize ) : UIComponent ( name )
_window_invert = NULL;
_icon = 0;
_allow_resize = allowResize;
_last_state = 0;
_flash_owin = 0;
_flash_iwin = 0;
memset(&_window_attributes, 0, sizeof(XWindowAttributes));
assert ( theApplication != NULL ); // Application object must exist
// before any MainWindow object

View File

@@ -108,6 +108,8 @@ SelectFileCmd::SelectFileCmd (const char * name,
_cancel_clientData = NULL;
_fileBrowser = NULL;
_parentWidget = parent;
_hidden_button = NULL;
_directory = NULL;
}
SelectFileCmd::SelectFileCmd (const char * name,
@@ -130,6 +132,8 @@ SelectFileCmd::SelectFileCmd (const char * name,
_cancel_clientData = cancel_clientData;
_fileBrowser = NULL;
_parentWidget = parent;
_hidden_button = NULL;
_directory = NULL;
}
SelectFileCmd::~SelectFileCmd()