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

Fix all callers.
This commit is contained in:
Ken Brown 2017-09-16 22:04:12 -04:00 committed by Corinna Vinschen
parent be436ad2a3
commit 571b7689bb
2 changed files with 2 additions and 2 deletions

View File

@ -498,7 +498,7 @@ format_process_cwd (void *data, char *&destbuf)
cfree (destbuf);
destbuf = NULL;
}
destbuf = p->cwd (fs);
destbuf = p ? p->cwd (fs) : NULL;
if (!destbuf || !*destbuf)
{
destbuf = cstrdup ("<defunct>");

View File

@ -930,7 +930,7 @@ char *
_pinfo::cwd (size_t& n)
{
char *s = NULL;
if (!this || !pid)
if (!pid)
return NULL;
if (ISSTATE (this, PID_NOTCYGWIN))
{