cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fds
Fix all callers.
This commit is contained in:
parent
47bbe23105
commit
504959d8fc
@ -375,7 +375,7 @@ format_process_fd (void *data, char *&destbuf)
|
||||
{
|
||||
if (destbuf)
|
||||
cfree (destbuf);
|
||||
destbuf = p->fds (fs);
|
||||
destbuf = p ? p->fds (fs) : NULL;
|
||||
*((process_fd_t *) data)->fd_type = virt_symlink;
|
||||
}
|
||||
else
|
||||
|
@ -856,7 +856,7 @@ char *
|
||||
_pinfo::fds (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