libpmc: squelch valgrind warnings
This commit is contained in:
parent
c0a10a2d85
commit
220dbdb061
@ -3277,6 +3277,7 @@ pmc_init(void)
|
||||
return (pmc_syscall = -1);
|
||||
}
|
||||
|
||||
bzero(&op_cpu_info, sizeof(op_cpu_info));
|
||||
if (PMC_CALL(GETCPUINFO, &op_cpu_info) < 0)
|
||||
return (pmc_syscall = -1);
|
||||
|
||||
@ -3284,7 +3285,7 @@ pmc_init(void)
|
||||
cpu_info.pm_ncpu = op_cpu_info.pm_ncpu;
|
||||
cpu_info.pm_npmc = op_cpu_info.pm_npmc;
|
||||
cpu_info.pm_nclass = op_cpu_info.pm_nclass;
|
||||
for (n = 0; n < cpu_info.pm_nclass; n++)
|
||||
for (n = 0; n < op_cpu_info.pm_nclass; n++)
|
||||
memcpy(&cpu_info.pm_classes[n], &op_cpu_info.pm_classes[n],
|
||||
sizeof(cpu_info.pm_classes[n]));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user