pmc filter: avoid spurious gcc uninitialized warning

This commit is contained in:
Matt Macy 2018-06-04 06:30:35 +00:00
parent cda7a5d5ed
commit b79ce32e4e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=334609

View File

@ -145,7 +145,7 @@ pmc_filter_handler(uint32_t *lwplist, int lwpcount, uint32_t *pidlist, int pidco
if ((ps = pmclog_open(infd)) == NULL)
errx(EX_OSERR, "ERROR: Cannot allocate pmclog parse state: %s\n", strerror(errno));
pmccount = 0;
eventcount = pmccount = 0;
while (pmclog_read(ps, &ev) == 0) {
if (ev.pl_type == PMCLOG_TYPE_INITIALIZE)
memcpy(cpuid, ev.pl_u.pl_i.pl_cpuid, PMC_CPUID_LEN);