cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::fds

Fix all callers.
This commit is contained in:
Ken Brown 2017-09-16 22:04:10 -04:00 committed by Corinna Vinschen
parent 47bbe23105
commit 504959d8fc
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -856,7 +856,7 @@ char *
_pinfo::fds (size_t &n)
{
char *s;
if (!this || !pid)
if (!pid)
return NULL;
if (pid != myself->pid)
{