]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/morefile/DirectoryCopy.c
Set wxPendingEvents to NULL after deleting it
[wxWidgets.git] / src / mac / morefile / DirectoryCopy.c
index ed9c8347188dc773aa06e6ec8e9894272659aff1..dd484c9b2ce3faa61e5872ba0b21717562c4b9c1 100644 (file)
@@ -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,