]> sourceware.org Git - newlib-cygwin.git/commitdiff
* pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential cleanup of
authorChristopher Faylor <me@cgf.cx>
Wed, 4 May 2011 06:00:54 +0000 (06:00 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 4 May 2011 06:00:54 +0000 (06:00 +0000)
uninitialized garbage.  (Suggested by Ryan Johnson)

winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.h

index b348b12c894d425c1d3fc9608796a1e40a58ba18..da31c62247adcfc284502a55db02125b7ac115d1 100644 (file)
@@ -1,3 +1,8 @@
+2011-05-04  Christopher Faylor  <me.cygwin2011@cgf.cx>
+
+       * pinfo.cc (pinfo::pinfo): Set procinfo to NULL to avoid potential
+       cleanup of uninitialized garbage.  (Suggested by Ryan Johnson)
+
 2011-05-03  Corinna Vinschen  <corinna@vinschen.de>
 
        * select.cc (cygwin_select): Make degenerate case cancelable.
index be6a0b6610a49a7ef89f89ec8a1851137c441d1f..b47b59f7f4581e94063a1d2b992b61f43867c985 100644 (file)
@@ -142,7 +142,7 @@ public:
   bool waiter_ready;
   class cygthread *wait_thread;
   void init (pid_t, DWORD, HANDLE) __attribute__ ((regparm(3)));
-  pinfo () {}
+  pinfo (): procinfo (NULL) {}
   pinfo (_pinfo *x): procinfo (x), hProcess (NULL) {}
   pinfo (pid_t n) : rd_proc_pipe (NULL), hProcess (NULL) {init (n, 0, NULL);}
   pinfo (pid_t n, DWORD flag) : rd_proc_pipe (NULL), hProcess (NULL), waiter_ready (0), wait_thread (NULL) {init (n, flag, NULL);}
This page took 0.029115 seconds and 5 git commands to generate.