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 <astitc...@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-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to