4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-18 12:29:32 +08:00

* pinfo.cc (_pinfo::commune_send): Initialize buffer or suffer random crashes.

This commit is contained in:
Christopher Faylor 2002-11-05 03:39:25 +00:00
parent 8948b6585d
commit f57289609b
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);