diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-13 03:54:32 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-13 03:54:32 +0300 |
commit | 678a9510df0fa167ab6d23108d639e3d2f216015 (patch) | |
tree | 44f2d4b583c84ef988621b21a1c951e31e659c4d /winsup/cygwin/pinfo.cc | |
parent | c9da5a2183c06038d07b6aa13482392f9054b94c (diff) |
* pinfo.cc (winpids::add): Don't copy procinfo when there is no cygwin process
associated with the pid, i.e., procinfo == NULL.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 4e8f1a899..bf82ab219 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -1130,7 +1130,7 @@ winpids::add (DWORD& nelem, bool winpid, DWORD pid) out: copied[nelem] = false; - if (make_copy) + if (make_copy && p) { _pinfo *pnew = (_pinfo *) malloc (sizeof (*p.procinfo)); if (pnew) |