libtt: Coverity fixes related to uninitialised fields in classes.

This commit is contained in:
Peter Howkins
2018-04-18 01:28:03 +01:00
parent caef8edac0
commit 02d43dabe6
30 changed files with 90 additions and 14 deletions

View File

@@ -48,6 +48,9 @@ _Tt_observer()
_ptid = (char *)0;
_reliability = TT_DISCARD;
_opnum = -1;
_scope = NULL;
_state = TT_STATE_LAST; // BUG This class member is not set anywhere, but a getter function exists
}
@@ -59,7 +62,7 @@ _Tt_observer(_Tt_string ptid, int opnum,
_reliability = reliability;
_opnum = opnum;
_scope = s;
_state = TT_STATE_LAST; // BUG This class member is not set anywhere, but a getter function exists
}