]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: cwdstuff::get: clean up debug_printf output
authorKen Brown <kbrown@cornell.edu>
Sun, 23 Aug 2020 22:41:18 +0000 (18:41 -0400)
committerKen Brown <kbrown@cornell.edu>
Sun, 23 Aug 2020 22:50:00 +0000 (18:50 -0400)
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.

winsup/cygwin/path.cc

index f3b9913bd093564840f7c098c18bdcd4a096e15c..95faf8ca724cdb946781da3623276282586c9cbb 100644 (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)
This page took 0.036597 seconds and 5 git commands to generate.