diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-18 04:53:37 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-18 04:53:37 +0000 |
commit | ac944e37d029c8bc9e38a51be76fece99a2826f1 (patch) | |
tree | 26faad099a731a19876502ed4b278a6bd43bcda7 /winsup/cygwin/environ.cc | |
parent | 3f7bd531155175f7c8158b68fcaf9e1aa98f9c1d (diff) | |
download | newlib-ac944e37d029c8bc9e38a51be76fece99a2826f1.zip newlib-ac944e37d029c8bc9e38a51be76fece99a2826f1.tar.gz newlib-ac944e37d029c8bc9e38a51be76fece99a2826f1.tar.bz2 |
* 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 <dj@redhat.com>).
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r-- | winsup/cygwin/environ.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index 612e7e1..31f87ad 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:<foo>;<bar> into their mounted equivalents - if there is one. */ |