platform_windows: mkstemp() fix does not need setting errno after all ENGINE-454
authorClaudio Luck <claudio.luck@pep.foundation>
Mon, 13 Aug 2018 11:04:49 +0200
branchENGINE-454
changeset 2808fb8e139fcef6
parent 2807 edd4e99844f1
child 2813 7f17851f7f17
platform_windows: mkstemp() fix does not need setting errno after all
src/platform_windows.cpp
     1.1 --- a/src/platform_windows.cpp	Sat Aug 11 22:40:29 2018 +0200
     1.2 +++ b/src/platform_windows.cpp	Mon Aug 13 11:04:49 2018 +0200
     1.3 @@ -286,7 +286,6 @@
     1.4  
     1.5  int mkstemp(char *templ)
     1.6  {
     1.7 -    errno = 0;
     1.8      char *pathname = _mktemp(templ);
     1.9      if (pathname == NULL)
    1.10          return -1;