From: Dragos Oancea Date: Fri, 31 Jan 2020 21:35:30 +0000 (+0000) Subject: [sofia-sip] scan-build: Value stored to 'rest' is never read - msg_extract_payload() X-Git-Tag: v1.10.3^2~213^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F295%2Fhead;p=thirdparty%2Ffreeswitch.git [sofia-sip] scan-build: Value stored to 'rest' is never read - msg_extract_payload() --- diff --git a/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c b/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c index 16a3daa4f8..ca904aea80 100644 --- a/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c +++ b/libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c @@ -1384,7 +1384,6 @@ issize_t msg_extract_payload(msg_t *msg, msg_pub_t *mo, usize_t current, rest; current = msg->m_buffer->mb_size - msg->m_buffer->mb_used; - rest = body_len - current; /* Use all the data from our current buffer */ msg_buf_used(msg, current);