cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::cwd
Fix all callers.
This commit is contained in:
parent
be436ad2a3
commit
571b7689bb
|
@ -498,7 +498,7 @@ format_process_cwd (void *data, char *&destbuf)
|
||||||
cfree (destbuf);
|
cfree (destbuf);
|
||||||
destbuf = NULL;
|
destbuf = NULL;
|
||||||
}
|
}
|
||||||
destbuf = p->cwd (fs);
|
destbuf = p ? p->cwd (fs) : NULL;
|
||||||
if (!destbuf || !*destbuf)
|
if (!destbuf || !*destbuf)
|
||||||
{
|
{
|
||||||
destbuf = cstrdup ("<defunct>");
|
destbuf = cstrdup ("<defunct>");
|
||||||
|
|
|
@ -930,7 +930,7 @@ char *
|
||||||
_pinfo::cwd (size_t& n)
|
_pinfo::cwd (size_t& n)
|
||||||
{
|
{
|
||||||
char *s = NULL;
|
char *s = NULL;
|
||||||
if (!this || !pid)
|
if (!pid)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (ISSTATE (this, PID_NOTCYGWIN))
|
if (ISSTATE (this, PID_NOTCYGWIN))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue