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:
parent
39e280f114
commit
d6cfff626d
|
@ -1 +1 @@
|
||||||
Sun May 25 10:57:08 EDT 2008
|
Sun May 25 10:58:52 EDT 2008
|
||||||
|
|
|
@ -364,8 +364,6 @@ 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)
|
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') {
|
if (h && s && s[slen] == '\0') {
|
||||||
size_t n = span_lws(s);
|
size_t n = span_lws(s);
|
||||||
s += n; slen -= n;
|
s += n; slen -= n;
|
||||||
|
@ -375,6 +373,8 @@ issize_t sip_header_field_d(su_home_t *home, sip_header_t *h, char *s, isize_t s
|
||||||
|
|
||||||
s[n] = '\0';
|
s[n] = '\0';
|
||||||
|
|
||||||
|
assert(SIP_HDR_TEST(h));
|
||||||
|
|
||||||
return h->sh_class->hc_parse(home, h, s, slen);
|
return h->sh_class->hc_parse(home, h, s, slen);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue