You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by gs...@apache.org on 2020/08/12 17:16:25 UTC

[qpid-dispatch] 02/03: DISPATCH-1742: avoid using uninitialised value in conditional

This is an automated email from the ASF dual-hosted git repository.

gsim pushed a commit to branch dev-protocol-adaptors
in repository https://gitbox.apache.org/repos/asf/qpid-dispatch.git

commit fea7d27eb8b5785e9683fcd936a8f4a16d4e8ab7
Author: Gordon Sim <gs...@redhat.com>
AuthorDate: Wed Aug 12 18:13:17 2020 +0100

    DISPATCH-1742: avoid using uninitialised value in conditional
---
 src/message.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/message.c b/src/message.c
index 4c5cd9c..8c2cf57 100644
--- a/src/message.c
+++ b/src/message.c
@@ -2474,6 +2474,7 @@ qd_message_body_data_result_t qd_message_next_body_data(qd_message_t *in_msg, qd
 
     qd_section_status_t section_status;
     qd_field_location_t location;
+    ZERO(&location);
 
     section_status = message_section_check(&msg->body_buffer, &msg->body_cursor,
                                            BODY_DATA_SHORT, 3, TAGS_BINARY,


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