Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2016-11-24 17:06:51 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-11-24 17:06:51 +0300
commit59ab07f170d32d09329eaa110c1a90ab534e399a (patch)
treef3eead0ad0fb03c0ca989467b29db1020ce8bec9
parent1dfffe8ef49feec60df9513d9a1f5573faedc357 (diff)
_pinfo::set_ctty: Check potential NULL pointer in debug_printf statement
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r--winsup/cygwin/pinfo.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 1ce680943..9b74442d0 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -502,7 +502,7 @@ _pinfo::set_ctty (fhandler_termios *fh, int flags)
if (!tc.getpgid () && pgid == pid)
tc.setpgid (pgid);
}
- debug_printf ("cygheap->ctty now %p, archetype %p", cygheap->ctty, fh->archetype);
+ debug_printf ("cygheap->ctty now %p, archetype %p", cygheap->ctty, fh ? fh->archetype : NULL);
return ctty > 0;
}