summaryrefslogtreecommitdiffstats
path: root/pcp
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2023-09-01 09:43:34 +1000
committerNathan Scott <nathans@redhat.com>2023-09-04 08:59:51 +1000
commit5d47e2c50d77e46666f37a3cdb19f27ba3432a9f (patch)
tree0896aebff097d34529f1feef8a2d9a57c583d025 /pcp
parentde1d3e17aff864a58cb7f6da6efff7b7bde6182a (diff)
Adjust pointer tracking to assist static checkers
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.
Diffstat (limited to 'pcp')
-rw-r--r--pcp/InDomTable.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcp/InDomTable.c b/pcp/InDomTable.c
index b96f8a81..40a22f1d 100644
--- a/pcp/InDomTable.c
+++ b/pcp/InDomTable.c
@@ -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;

© 2014-2024 Faster IT GmbH | imprint | privacy policy