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/09/02 21:16:33 UTC
[lucy-commits] [02/15] git commit: refs/heads/cfish-string-prep1 - Eliminate
Str_catf in Store::InStream
Eliminate Str_catf in Store::InStream
Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/f028d091
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/f028d091
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/f028d091
Branch: refs/heads/cfish-string-prep1
Commit: f028d0910a8b2ebd8558f0d19ca696e3b8c74998
Parents: 5c9d7a7
Author: Nick Wellnhofer <we...@aevum.de>
Authored: Mon Sep 2 20:00:53 2013 +0200
Committer: Nick Wellnhofer <we...@aevum.de>
Committed: Mon Sep 2 21:12:29 2013 +0200
----------------------------------------------------------------------
core/Lucy/Store/InStream.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucy/blob/f028d091/core/Lucy/Store/InStream.c
----------------------------------------------------------------------
diff --git a/core/Lucy/Store/InStream.c b/core/Lucy/Store/InStream.c
index cb975ce..d68efa4 100644
--- a/core/Lucy/Store/InStream.c
+++ b/core/Lucy/Store/InStream.c
@@ -219,7 +219,9 @@ S_fill(InStream *self, int64_t amount) {
}
else {
Err *error = Err_get_error();
- Str_catf(Err_Get_Mess(error), " (%o)", ivars->filename);
+ String *str = Str_newf(" (%o)", ivars->filename);
+ Err_Cat_Mess(error, str);
+ DECREF(str);
RETHROW(INCREF(error));
}
}