mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-31 11:30:56 +08:00
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::environ
Fix all callers.
This commit is contained in:
parent
6cd1978fc8
commit
d17c45f200
@ -583,7 +583,7 @@ format_process_environ (void *data, char *&destbuf)
|
||||
cfree (destbuf);
|
||||
destbuf = NULL;
|
||||
}
|
||||
destbuf = p->environ (fs);
|
||||
destbuf = p ? p->environ (fs) : NULL;
|
||||
if (!destbuf || !*destbuf)
|
||||
{
|
||||
destbuf = cstrdup ("<defunct>");
|
||||
|
@ -1036,7 +1036,7 @@ char *
|
||||
_pinfo::environ (size_t& n)
|
||||
{
|
||||
char **env = NULL;
|
||||
if (!this || !pid)
|
||||
if (!pid)
|
||||
return NULL;
|
||||
if (ISSTATE (this, PID_NOTCYGWIN))
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user