Commit 9c6da05a authored by Pekka Pessi's avatar Pekka Pessi

sip_util.c: fixed klocwork issues

darcs-hash:20080520133250-65a35-271b01e527efbda500a8e4e02ac61914d5b0c6e4.gz
parent 0e79191a
......@@ -364,17 +364,17 @@ sip_sanity_check(sip_t const *sip)
*/
issize_t sip_header_field_d(su_home_t *home, sip_header_t *h, char *s, isize_t slen)
{
assert(SIP_HDR_TEST(h));
if (h && s && s[slen] == '\0') {
size_t n = span_lws(s);
s += n; slen -= n;
for (n = slen; n >= 1 && IS_LWS(s[n - 1]); n--)
;
s[n] = '\0';
assert(SIP_HDR_TEST(h));
return h->sh_class->hc_parse(home, h, s, slen);
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment