From ac944e37d029c8bc9e38a51be76fece99a2826f1 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 18 Oct 2000 04:53:37 +0000 Subject: * exceptions.cc (call_handler): Make signal pending if sigsave.sig is still active. * syscalls.cc (_read): Don't clear errno. * sigproc.cc (wait_sig): Don't scan the waiting process list after a SIGCHLD if there are no zombies to reap. * winsup.h: Use __builtin_strcmp. * environ.cc (posify): Don't initialize len unless it is required (from DJ Delorie ). --- winsup/cygwin/environ.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/environ.cc') diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 612e7e13e..31f87ad2d 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -113,11 +113,12 @@ posify (char **here, const char *value) { char *src = *here; win_env *conv; - int len = strcspn (src, "=") + 1; if (!(conv = getwinenv (src))) return; + int len = strcspn (src, "=") + 1; + /* Turn all the items from c:; into their mounted equivalents - if there is one. */ -- cgit v1.2.3