mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 23:15:46 +00:00
Merge pull request #775 from cgzones/pcp
PCP: do not set exe to empty string
This commit is contained in:
commit
9b30870eec
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user