You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So at the end of the LC_TableInit function there is an odd branching
if (LC_CDS_ENABLED)
{
if (LC_CDS_RESTORED)
{
restored event
}
else if (LC_CDS_UPDATED)
{
default event
}
// nothing else here !!!
}
else
{
CDS disabled event
}
So, the question is: Can we have a scenario where LC_CDS_ENABLED is TRUE, but both LC_CDS_RESTORED and LC_CDS_UPDATED are FALSE? And IF SO: What is the desired behavior here?? This is a situation where the lack of an else clause on an "else if" most definitively is cause for concern. If that scenario cannot exist, then it would seem an "else if" is not required. Unfortunately, due to the convoluted nature of this function and those that it calls, it is would be difficult to determine if the above scenario is a possibility.
Imported from GSFCCFS-1104
The text was updated successfully, but these errors were encountered:
"LC use of Critical Data Store disabled, activity mask = 0x%08X",
(unsigned int)LC_OperData.TableResults);
}
Behavior is not "undefined", it's behaving as intended (send an event if any of the cases match). The convoluted nature of the routine is a separate issue (#36)
So at the end of the LC_TableInit function there is an odd branching
if (LC_CDS_ENABLED)
{
if (LC_CDS_RESTORED)
{
restored event
}
else if (LC_CDS_UPDATED)
{
default event
}
// nothing else here !!!
}
else
{
CDS disabled event
}
So, the question is: Can we have a scenario where LC_CDS_ENABLED is TRUE, but both LC_CDS_RESTORED and LC_CDS_UPDATED are FALSE? And IF SO: What is the desired behavior here?? This is a situation where the lack of an else clause on an "else if" most definitively is cause for concern. If that scenario cannot exist, then it would seem an "else if" is not required. Unfortunately, due to the convoluted nature of this function and those that it calls, it is would be difficult to determine if the above scenario is a possibility.
Imported from GSFCCFS-1104
The text was updated successfully, but these errors were encountered: