diff options
author | Nathan Scott <natoscott@users.noreply.github.com> | 2021-09-03 12:08:00 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-03 12:08:00 +1000 |
commit | 9b30870eeca0e2fd29602451205834d753ed5905 (patch) | |
tree | 1675ea8193e33165aff3a29dd88b3358c0cd968a | |
parent | f94934472f6325db33a45ca5a3a29e371085e507 (diff) | |
parent | 25c945e2ef03bc043c2f421b930a59c73534473f (diff) |
Merge pull request #775 from cgzones/pcp
PCP: do not set exe to empty string
-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 3001d5e8..b55b5a42 100644 --- a/pcp/PCPProcessList.c +++ b/pcp/PCPProcessList.c @@ -317,7 +317,7 @@ static void PCPProcessList_updateCmdline(Process* process, int pid, int offset, Process_updateComm(process, comm); 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); } } |