qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From astitc...@apache.org
Subject qpid-proton git commit: PROTON-623: Add missing error check to pn_string_inspect
Date Thu, 08 Dec 2016 09:18:01 GMT
Repository: qpid-proton
Updated Branches:
  refs/heads/master f89d24d85 -> 30d01e98d


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/master
Commit: 30d01e98d51cb196d9b997ff3acc495183f3008d
Parents: f89d24d
Author: Bozo Dragojevic <bozzo@digiverse.si>
Authored: Thu Dec 8 04:14:22 2016 -0500
Committer: Andrew Stitcher <astitcher@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


Mime
View raw message