mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-23 22:55:46 +00:00
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
Block a user