mirror of https://github.com/xzeldon/htop.git
Don't force allocation, as failure is handled
This commit is contained in:
parent
9eb52d5932
commit
57c1538887
|
@ -145,7 +145,7 @@ static void DarwinProcess_updateCmdLine(const struct kinfo_proc* k, Process* pro
|
|||
}
|
||||
|
||||
/* Allocate space for the arguments. */
|
||||
procargs = (char*)xMalloc(argmax);
|
||||
procargs = (char*)malloc(argmax);
|
||||
if ( procargs == NULL ) {
|
||||
goto ERROR_A;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue