Merge pull request #775 from cgzones/pcp

PCP: do not set exe to empty string
This commit is contained in:
Nathan Scott 2021-09-03 12:08:00 +10:00 committed by GitHub
commit 9b30870eec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ static void PCPProcessList_updateCmdline(Process* process, int pid, int offset,
Process_updateComm(process, comm); Process_updateComm(process, comm);
if (PCPMetric_instance(PCP_PROC_EXE, pid, offset, &value, PM_TYPE_STRING)) { if (PCPMetric_instance(PCP_PROC_EXE, pid, offset, &value, PM_TYPE_STRING)) {
Process_updateExe(process, value.cp); Process_updateExe(process, value.cp[0] ? value.cp : NULL);
free(value.cp); free(value.cp);
} }
} }