lucy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nwelln...@apache.org
Subject [lucy-commits] [02/15] git commit: refs/heads/cfish-string-prep1 - Eliminate Str_catf in Store::InStream
Date Mon, 02 Sep 2013 19:16:33 GMT
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 <wellnhofer@aevum.de>
Authored: Mon Sep 2 20:00:53 2013 +0200
Committer: Nick Wellnhofer <wellnhofer@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));
     }
 }


Mime
View raw message