diff options
author | Ken Brown <kbrown@cornell.edu> | 2017-09-17 05:04:17 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2017-10-09 12:44:11 +0300 |
commit | d17c45f200c3b68fe1c99e413b0444366bfd9290 (patch) | |
tree | 3653796b0ca45b90f575f4411da917c7acf40606 /winsup/cygwin/fhandler_process.cc | |
parent | 6cd1978fc81a2046fa0b27ff63b015f31d49ec77 (diff) |
cygwin: Remove comparison of 'this' to 'NULL' in _pinfo::environ
Fix all callers.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r-- | winsup/cygwin/fhandler_process.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc index 360d8ea81..eb5a523ff 100644 --- a/winsup/cygwin/fhandler_process.cc +++ b/winsup/cygwin/fhandler_process.cc @@ -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>"); |