You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/01/03 22:02:47 UTC
[15/30] qpid-proton git commit: PROTON-623: Add missing error check
to pn_string_inspect
PROTON-623: Add missing error check to pn_string_inspect
Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/30d01e98
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/30d01e98
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/30d01e98
Branch: refs/heads/go1
Commit: 30d01e98d51cb196d9b997ff3acc495183f3008d
Parents: f89d24d
Author: Bozo Dragojevic <bo...@digiverse.si>
Authored: Thu Dec 8 04:14:22 2016 -0500
Committer: Andrew Stitcher <as...@apache.org>
Committed: Thu Dec 8 04:16:22 2016 -0500
----------------------------------------------------------------------
proton-c/src/core/object/string.c | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/30d01e98/proton-c/src/core/object/string.c
----------------------------------------------------------------------
diff --git a/proton-c/src/core/object/string.c b/proton-c/src/core/object/string.c
index 13d0739..71db6c4 100644
--- a/proton-c/src/core/object/string.c
+++ b/proton-c/src/core/object/string.c
@@ -80,6 +80,7 @@ static int pn_string_inspect(void *obj, pn_string_t *dst)
}
int err = pn_string_addf(dst, "\"");
+ if (err) return err;
for (int i = 0; i < str->size; i++) {
uint8_t c = str->bytes[i];
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org