Tue May 20 09:32:50 EDT 2008 Pekka.Pessi@nokia.com

* sip_util.c: fixed klocwork issues


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8615 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 14:58:59 +00:00
parent 39e280f114
commit d6cfff626d
2 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
Sun May 25 10:57:08 EDT 2008
Sun May 25 10:58:52 EDT 2008

View File

@ -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