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

Fix all callers.
This commit is contained in:
Ken Brown
2017-09-16 22:04:16 -04:00
committed by Corinna Vinschen
parent 56f23a5107
commit 6cd1978fc8
2 changed files with 2 additions and 2 deletions

View File

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