]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
dup the path string first - the l1l2 parsing routine spits out a log
authoradrian <>
Sun, 7 Sep 2003 13:35:50 +0000 (13:35 +0000)
committeradrian <>
Sun, 7 Sep 2003 13:35:50 +0000 (13:35 +0000)
message which relies on it.

src/fs/ufs/store_dir_ufs.cc

index 3a215b4d64d873794ad160a3f8fa305cb2c9b075..326a281e981f4da8a3774f63b90c27deff538b7a 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: store_dir_ufs.cc,v 1.63 2003/08/10 07:43:42 robertc Exp $
+ * $Id: store_dir_ufs.cc,v 1.64 2003/09/07 07:35:50 adrian Exp $
  *
  * DEBUG: section 47    Store Directory Routines
  * AUTHOR: Duane Wessels
@@ -117,12 +117,11 @@ UFSSwapDir::reconfigure(int index, char *path)
 void
 UFSSwapDir::parse (int anIndex, char *aPath)
 {
-    parseSizeL1L2();
-
     index = anIndex;
-
     path = xstrdup(aPath);
 
+    parseSizeL1L2();
+
     /* Initialise replacement policy stuff */
     repl = createRemovalPolicy(Config.replPolicy);