Cygwin: cwdstuff::get: clean up debug_printf output

Set errno = 0 at the beginning so that the debug_printf call at the
end doesn't report a nonzero errno left over from some other function
call.
This commit is contained in:
Ken Brown 2020-08-23 18:41:18 -04:00
parent bb42852062
commit c1f177d6a9

View File

@ -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)