mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-18 23:12:15 +08:00
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fd
Fix all callers.
This commit is contained in:
parent
56f23a5107
commit
6cd1978fc8
@ -391,7 +391,7 @@ format_process_fd (void *data, char *&destbuf)
|
||||
set_errno (ENOENT);
|
||||
return 0;
|
||||
}
|
||||
destbuf = p->fd (fd, fs);
|
||||
destbuf = p ? p->fd (fd, fs) : NULL;
|
||||
if (!destbuf || !*destbuf)
|
||||
{
|
||||
set_errno (ENOENT);
|
||||
|
@ -832,7 +832,7 @@ char *
|
||||
_pinfo::fd (int fd, size_t &n)
|
||||
{
|
||||
char *s;
|
||||
if (!this || !pid)
|
||||
if (!pid)
|
||||
return NULL;
|
||||
if (pid != myself->pid)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user