diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 19:05:15 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 19:05:15 +0000 |
commit | 8431e478d2f74ebf0bcfd2bc4c71e3c391fc7753 (patch) | |
tree | d3de9519039b3fb0e2536eabbabd2445015e902b /winsup/cygwin/spawn.cc | |
parent | cf06a0b18cf8dd93531f73e2a31f0c72389e84ec (diff) | |
download | cygnal-8431e478d2f74ebf0bcfd2bc4c71e3c391fc7753.tar.gz cygnal-8431e478d2f74ebf0bcfd2bc4c71e3c391fc7753.tar.bz2 cygnal-8431e478d2f74ebf0bcfd2bc4c71e3c391fc7753.zip |
* spawn.cc (find_exec): Initialize err (CID 60111).
* strace.cc (strace::activate): Fix potential buffer overrun (CID 59938)
* syscalls.cc (popen): Close parent pipe descriptor via fclosing fp on
error to avoid resource leak (CID 59981).
* thread.cc (pthread::exit): Avoid accessing cygtls member after
deleting "this" (CID 60217).
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index 0482a68c8..d1b1fbad6 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -94,7 +94,7 @@ find_exec (const char *name, path_conv& buf, const char *mywinenv, char *tmp = tp.c_get (); const char *posix = (opt & FE_NATIVE) ? NULL : name; bool has_slash = !!strpbrk (name, "/\\"); - int err; + int err = 0; /* Check to see if file can be opened as is first. Win32 systems always check . first, but PATH may not be set up to |