This is the mail archive of the
cygwin-cvs@cygwin.com
mailing list for the Cygwin project.
[newlib-cygwin] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request
- From: Corinna Vinschen <corinna at sourceware dot org>
- To: cygwin-cvs at sourceware dot org
- Date: 9 Oct 2017 10:11:20 -0000
- Subject: [newlib-cygwin] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d1ea8f4a467af21737f29b225b72549d1346a7e2
commit d1ea8f4a467af21737f29b225b72549d1346a7e2
Author: Ken Brown <kbrown@cornell.edu>
Date: Sat Sep 16 22:04:14 2017 -0400
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request
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 e792a0a..a068bcc 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -720,7 +720,7 @@ _pinfo::commune_request (__uint32_t code, ...)
res.s = NULL;
res.n = 0;
- if (!this || !pid)
+ if (!pid)
{
set_errno (ESRCH);
goto err;