]> sourceware.org Git - newlib-cygwin.git/commitdiff
* pinfo.cc (pinfo::init): Avoid a compiler warning.
authorChristopher Faylor <me@cgf.cx>
Wed, 26 Jan 2005 18:21:22 +0000 (18:21 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 26 Jan 2005 18:21:22 +0000 (18:21 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/pinfo.cc

index babb9f8467757514582c880a31adb10eef697e7a..7ee641fe3a439f8b7afcb87b5634fa0e8ef0b597 100644 (file)
@@ -1,3 +1,7 @@
+2005-01-26  Christopher Faylor  <cgf@timesys.com>
+
+       * pinfo.cc (pinfo::init): Avoid a compiler warning.
+
 2005-01-25  Corinna Vinschen  <corinna@vinschen.de>
 
        * syscalls.cc (setpriority): Implement PRIO_PGRP, PRIO_USER and
index 76386ae3fccf9fe38269c5ca4a02f3ec6b8bec6b..2159f2005d3e8966cd5e1dfaf5cea25003a461b7 100644 (file)
@@ -179,7 +179,7 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0)
 
   void *mapaddr;
   bool createit = !!(flag & (PID_IN_USE | PID_EXECED));
-  bool created;
+  bool created = false;
   DWORD access = FILE_MAP_READ
                 | (flag & (PID_IN_USE | PID_EXECED | PID_MAP_RW)
                    ? FILE_MAP_WRITE : 0);
@@ -189,7 +189,6 @@ pinfo::init (pid_t n, DWORD flag, HANDLE h0)
     {
       /* Try to enforce that myself is always created in the same place */
       mapaddr = open_shared (NULL, 0, h0, 0, SH_MYSELF);
-      created = false;
       if (h0 == INVALID_HANDLE_VALUE)
        h0 = NULL;
     }
This page took 0.033193 seconds and 5 git commands to generate.