You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by nw...@apache.org on 2013/08/26 01:51:04 UTC

[lucy-commits] [3/5] git commit: refs/heads/cfish-string-prep1 - Eliminate CB_Mimic in Store::FileHandle

Eliminate CB_Mimic in Store::FileHandle


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/77511926
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/77511926
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/77511926

Branch: refs/heads/cfish-string-prep1
Commit: 77511926f7d4ff88b66d8e09106de82bc3a9115b
Parents: 61fe46e
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Aug 26 01:23:53 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon Aug 26 01:23:53 2013 +0200

----------------------------------------------------------------------
 core/Lucy/Store/FileHandle.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/77511926/core/Lucy/Store/FileHandle.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/FileHandle.c b/core/Lucy/Store/FileHandle.c
index 56bf7fc..143df0c 100644
--- a/core/Lucy/Store/FileHandle.c
+++ b/core/Lucy/Store/FileHandle.c
@@ -55,7 +55,8 @@ FH_Grow_IMP(FileHandle *self, int64_t length) {
 void
 FH_Set_Path_IMP(FileHandle *self, const CharBuf *path) {
     FileHandleIVARS *const ivars = FH_IVARS(self);
-    CB_Mimic(ivars->path, (Obj*)path);
+    DECREF(ivars->path);
+    ivars->path = CB_Clone(path);
 }
 
 CharBuf*