summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvasiljevic <zv@archiware.com>2003-09-01 12:30:38 (GMT)
committervasiljevic <zv@archiware.com>2003-09-01 12:30:38 (GMT)
commit6df292f4e80bfc89e813c03f93dd233e5f3ff988 (patch)
treefd443bdb0c92e1d00131fb322af9bd7c459a6a22
parentbb5652ca9a3aa78ddc0ea024835007253fcd5249 (diff)
downloadtcl-6df292f4e80bfc89e813c03f93dd233e5f3ff988.zip
tcl-6df292f4e80bfc89e813c03f93dd233e5f3ff988.tar.gz
tcl-6df292f4e80bfc89e813c03f93dd233e5f3ff988.tar.bz2
Backported fix from HEAD for Bug 788780
-rw-r--r--ChangeLog4
-rw-r--r--generic/tclIOUtil.c6
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9a4bf74..04d12eb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2003-09-01 Zoran Vasiljevic <zoran@archiware.com>
+
+ * generic/tclIOUtil.c: backported fix from HEAD [Bug 788780]
+
2003-08-27 Don Porter <dgp@users.sourceforge.net>
* generic/tclUtil.c: Corrected [Bug 411825] and other bugs in
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index b5bd88d..bfe08b4 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -17,7 +17,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.7 2003/07/18 20:28:32 hobbs Exp $
+ * RCS: @(#) $Id: tclIOUtil.c,v 1.77.2.8 2003/09/01 12:30:38 vasiljevic Exp $
*/
#include "tclInt.h"
@@ -586,11 +586,11 @@ FsRecacheFilesystemList(void)
/* Trash the current cache */
fsRecPtr = tsdPtr->filesystemList;
while (fsRecPtr != NULL) {
- tmpFsRecPtr = fsRecPtr;
+ tmpFsRecPtr = fsRecPtr->nextPtr;
if (--fsRecPtr->fileRefCount <= 0) {
ckfree((char *)fsRecPtr);
}
- fsRecPtr = tmpFsRecPtr->nextPtr;
+ fsRecPtr = tmpFsRecPtr;
}
tsdPtr->filesystemList = NULL;