diff options
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/path.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/path.cc b/winsup/cygwin/path.cc index f3b9913bd..95faf8ca7 100644 --- a/winsup/cygwin/path.cc +++ b/winsup/cygwin/path.cc @@ -5022,6 +5022,8 @@ char * cwdstuff::get (char *buf, int need_posix, int with_chroot, unsigned ulen) { tmp_pathbuf tp; + + errno = 0; if (ulen) /* nothing */; else if (buf == NULL) |