This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[newlib-cygwin] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=56f23a510703b399bdf9268b0a6230470531ab8c

commit 56f23a510703b399bdf9268b0a6230470531ab8c
Author: Ken Brown <kbrown@cornell.edu>
Date:   Sat Sep 16 22:04:15 2017 -0400

    cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::pipe_fhandler
    
    Fix all callers.

Diff:
---
 winsup/cygwin/pinfo.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index a068bcc..72aa658 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -819,7 +819,7 @@ out:
 fhandler_pipe *
 _pinfo::pipe_fhandler (int64_t unique_id, size_t &n)
 {
-  if (!this || !pid)
+  if (!pid)
     return NULL;
   if (pid == myself->pid)
     return NULL;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]