uninitialized and unused value cleanups

(cherry picked from commit 1f08602cf0ad84409cd8b3520510f9c6ce7d5f9c)
This commit is contained in:
AzaezelX 2023-05-01 10:37:44 -05:00
parent 1230d0d280
commit 0d4221fa59
38 changed files with 176 additions and 360 deletions

View file

@ -202,7 +202,7 @@ public:
void remove( DelegateSig dlg )
{
for( DelegateLink* ptr = mList.next;ptr != &mList; ptr = ptr->next )
for( DelegateLink* ptr = mList.next;(ptr != &mList)&& (ptr!= NULL); ptr = ptr->next )
{
if( DelegateLinkImpl* del = static_cast< DelegateLinkImpl* >( ptr ) )
{

View file

@ -70,7 +70,11 @@ namespace Torque
UUID()
{
dMemset( this, 0, sizeof( UUID ) );
a = b = c = d = e = 0;
for (U32 i = 0; i < 6; i++)
{
f [i]=0;
}
}
///