From a550adb0c69a517d13b841d87810611bc07d7681 Mon Sep 17 00:00:00 2001 From: Dragos Oancea Date: Fri, 31 Jan 2020 21:35:30 +0000 Subject: [PATCH] [sofia-sip] scan-build: Value stored to 'rest' is never read - msg_extract_payload() --- libs/sofia-sip/libsofia-sip-ua/msg/msg_parser.c | 1 - 1 file changed, 1 deletion(-) 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);