summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/pinfo.cc4
2 files changed, 9 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index c35a6f6a0..3d09e6abd 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2002-11-04 Christopher Faylor <cgf@redhat.com>
+ * pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random
+ crashes.
+
+2002-11-04 Christopher Faylor <cgf@redhat.com>
+
* fhandler_process.cc (fhandler_process::fill_filebuf): Deal with error
condition from cmdline retrieval.
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);