mirror of
https://github.com/mirror/make.git
synced 2025-01-27 21:00:22 +08:00
subproc: sub_proc: Added pointer judgment after allocation
Signed-off-by: Li kunyu <kunyu@nfschina.com>
This commit is contained in:
parent
5690084634
commit
392f405f60
@ -394,6 +394,9 @@ process_init()
|
||||
BYTE sd[SECURITY_DESCRIPTOR_MIN_LENGTH];
|
||||
|
||||
pproc = malloc(sizeof(*pproc));
|
||||
if (!pproc)
|
||||
return((HANDLE)NULL);
|
||||
|
||||
memset(pproc, 0, sizeof(*pproc));
|
||||
|
||||
/* We can't use NULL for lpSecurityDescriptor because that
|
||||
|
Loading…
Reference in New Issue
Block a user