dtinfo: Resolve coverity warnings related to uninitialised members of classes

This commit is contained in:
Peter Howkins
2018-04-19 23:25:47 +01:00
parent 02d43dabe6
commit 6e7e9d91e1
48 changed files with 167 additions and 32 deletions

View File

@@ -89,12 +89,15 @@ BookCaseTask::BookCaseTask(const char *infolib)
if ( !Dispatch::RunTocGenOnly() ) {
style = new StyleTaskDB(this);
addSubTask(style);
} else {
style = NULL;
}
book = new BookTask(this);
addSubTask(book);
f_style = NULL;
f_search_storage = NULL;
}

View File

@@ -46,6 +46,9 @@ public:
if ( this != &t ) {
this->level = t.level;
this->Buf = t.Buf;
} else {
this->level = -1;
this->Buf = NULL;
}
}
Rec & operator=( Rec &t ) {

View File

@@ -90,6 +90,8 @@ FirstOf::FirstOf( const Token &t,
}
}
elist = NULL;
}
//--------------------------------------------------------------------------

View File

@@ -269,6 +269,8 @@ NodeData::NodeData( NodeTask *parent, const Token &t)
#endif
write_start_tag ( t, NodeBuffer );
internal_buffer = NULL;
}
//---------------------------------------------------------------------

View File

@@ -78,6 +78,7 @@ StyleTask::StyleTask()
f_buffer = NULL;
f_pathbuf = NULL;
f_locator = NULL;
f_dataMode = inPath;
feature_depth = new Stack<int>;

View File

@@ -56,6 +56,9 @@ Token::Token()
entity_defn = NULL;
tokType=TK_INVALID;
f_olaf = -1;
f_level = 0;
f_file = NULL;
f_line = 0;
#ifdef FISH_DEBUG
DBUG_VOID_RETURN;