qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rob...@apache.org
Subject [qpid-proton] 06/15: NO-JIRA: Fix unused-variable warning from clang
Date Thu, 11 Apr 2019 17:07:12 GMT
This is an automated email from the ASF dual-hosted git repository.

robbie pushed a commit to branch 0.27.x
in repository https://gitbox.apache.org/repos/asf/qpid-proton.git

commit c209b5312788b24eff4a3ef7fbfbb43d106306ed
Author: Jiri Danek <jdanek@redhat.com>
AuthorDate: Wed Feb 20 22:49:26 2019 -0800

    NO-JIRA: Fix unused-variable warning from clang
    
    (cherry picked from commit f16be7816f5736e932ae588b605d36b67e757206)
---
 c/src/core/codec.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c/src/core/codec.c b/c/src/core/codec.c
index f8608a1..93b209f 100644
--- a/c/src/core/codec.c
+++ b/c/src/core/codec.c
@@ -337,6 +337,7 @@ int pni_inspect_exit(void *ctx, pn_data_t *data, pni_node_t *node)
     if (node->next) {
       if (parent && parent->atom.type == PN_MAP && (pni_node_lindex(data,
node) % 2) == 0) {
         err = pn_string_addf(str, "=");
+        if (err) return err;
       } else if (parent && parent->atom.type == PN_DESCRIBED && node->prev
== 0) {
         err = pn_string_addf(str, " ");
         if (err) return err;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message