From c9f654da96f9af05d599bc778575dd5b71a2c5ae Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Sat, 4 Feb 2023 11:45:55 +1100 Subject: Fix an incorrect memset pointer in PCP platform CPU handling --- pcp/PCPProcessList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcp') diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c index 045f7ae0..f893689a 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -571,7 +571,7 @@ static void PCPProcessList_updateAllCPUTime(PCPProcessList* this, PCPMetric metr { pmAtomValue* value = &this->cpu[cpumetric]; if (PCPMetric_values(metric, value, 1, PM_TYPE_U64) == NULL) - memset(&value, 0, sizeof(pmAtomValue)); + memset(value, 0, sizeof(pmAtomValue)); } static void PCPProcessList_updatePerCPUTime(PCPProcessList* this, PCPMetric metric, CPUMetric cpumetric) -- cgit v1.2.3