diff options
author | Nathan Scott <nathans@redhat.com> | 2023-02-04 11:45:55 +1100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2023-02-04 12:37:52 +0100 |
commit | c9f654da96f9af05d599bc778575dd5b71a2c5ae (patch) | |
tree | 4684fc5f3b6678605a94c7b83fd60614e0419d86 /pcp | |
parent | 623ee31cfe3a39c87e6066c3044c7c38ce676e6b (diff) |
Fix an incorrect memset pointer in PCP platform CPU handling
Diffstat (limited to 'pcp')
-rw-r--r-- | pcp/PCPProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |