This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH 06/12] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request
- From: Ken Brown <kbrown at cornell dot edu>
- To: cygwin-patches at cygwin dot com
- Date: Sat, 16 Sep 2017 22:04:14 -0400
- Subject: [PATCH 06/12] cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::commune_request
- Authentication-results: sourceware.org; auth=none
- References: <20170917020420.10488-1-kbrown@cornell.edu>
Fix all callers.
---
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 e792a0a1c..a068bcc42 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;
--
2.14.1