X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/92622ef4c2162596f543d304059375552db5c313..e9b964cfe591532f21c31204032357899cc2cbad:/src/mac/morefile/DirectoryCopy.c

diff --git a/src/mac/morefile/DirectoryCopy.c b/src/mac/morefile/DirectoryCopy.c
index ed9c834718..dd484c9b2c 100644
--- a/src/mac/morefile/DirectoryCopy.c
+++ b/src/mac/morefile/DirectoryCopy.c
@@ -260,7 +260,7 @@ static	void	CopyLevel(long sourceDirID,
 						  long dstDirID,
 						  EnumerateGlobals *theGlobals)
 {
-	long currentSrcDirID;
+	long currentSrcDirID = 0 ;
 	long newDirID;
 	short index = 1;
 	
@@ -325,6 +325,7 @@ static	void	CopyLevel(long sourceDirID,
 					}
 					else	/* error handling for DirCreate */
 					{
+ 						/* note that currentSrcDirID has not been initialised when entering this execution path */
 						if ( theGlobals->errorHandler != NULL )
 						{
 							theGlobals->bailout = CallCopyErrProc(theGlobals->errorHandler, theGlobals->error, dirCreateOp,