diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-05 03:39:25 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-05 03:39:25 +0000 |
commit | f57289609bdfe5c7063fb32336b1859c37b3c55b (patch) | |
tree | 910aba5fe158a9e7e8076a5d4560365572f14895 /winsup/cygwin/pinfo.cc | |
parent | 8948b6585dc2d0d34ddb7a07832b402adcc812a9 (diff) | |
download | cygnal-f57289609bdfe5c7063fb32336b1859c37b3c55b.tar.gz cygnal-f57289609bdfe5c7063fb32336b1859c37b3c55b.tar.bz2 cygnal-f57289609bdfe5c7063fb32336b1859c37b3c55b.zip |
* pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random crashes.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index b294130d7..0f9510fda 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -328,6 +328,10 @@ _pinfo::commune_send (DWORD code) HANDLE fromme = NULL, tothem = NULL; DWORD nr; commune_result res; + + res.s = NULL; + res.n = 0; + if (!pid || !this) { set_errno (ESRCH); |