Skip to content

Commit

Permalink
Adjust pointer tracking to assist static checkers
Browse files Browse the repository at this point in the history
Coverity scanning struggles to follow our 'super' handling
under certain circumstances.  Adjust the code to ensure we
keep good coverage even though this is a false positive.
  • Loading branch information
natoscott committed Aug 31, 2023
1 parent 7b544ec commit e2e7d03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcp/InDomTable.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ static void InDomTable_goThroughEntries(InDomTable* this) {
Instance* inst = InDomTable_getInstance(this, instid, &preExisting);
inst->offset = offset >= 0 ? offset : 0;

Row* row = &inst->super;
Row* row = (Row*) inst;
if (!preExisting)
Table_add(super, row);
row->updated = true;
Expand Down

0 comments on commit e2e7d03

Please sign in to comment.