diff --git a/ChangeLog b/ChangeLog index b6647c200..199431920 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ usePseudoTerminal method. * Source/NSData.m: ([writeToFile:atomically:]) create new files with permission 0644 modified by umask. + Init tmppath for MINGW. * Tools/gsdoc.m: Use memory management macros and attempt to get back to something like conformance with coding standards. * Documentation/gsdoc/NSTask.gsdoc: documentation fleshed out. diff --git a/Source/NSData.m b/Source/NSData.m index d37f9a7ea..6760132e2 100644 --- a/Source/NSData.m +++ b/Source/NSData.m @@ -661,7 +661,7 @@ failure: FILE *theFile; int c; #if defined(__MINGW__) - NSString *tmppath; + NSString *tmppath = path; HANDLE fh; DWORD wroteBytes; #endif