Wed May 13 13:18:14 CDT 2009 Pekka Pessi <first.last@nokia.com>

* msg_mclass_insert_header(): not using uninit data
  Ignore-this: 40a6993391b5f2993af8ee01c407c0c7
  
  Coverity issue.


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13349 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2009-05-15 16:15:28 +00:00
parent 6774ad7083
commit 28af3accb9
2 changed files with 2 additions and 20 deletions

View File

@ -1 +1 @@
Fri May 15 11:14:26 CDT 2009
Fri May 15 11:14:57 CDT 2009

View File

@ -164,25 +164,7 @@ int msg_mclass_insert_header(msg_mclass_t *mc,
msg_hclass_t *hc,
unsigned short offset)
{
msg_href_t hr[1];
if (mc == NULL || hc == NULL) {
errno = EINVAL;
return -1;
}
if (msg_hclass_offset(mc, NULL, hc))
return (void)(errno = EEXIST), -1;
if (offset == 0)
offset = mc->mc_msize, mc->mc_msize += sizeof(msg_header_t *);
assert(offset < mc->mc_msize);
hr->hr_class = hc;
hr->hr_offset = offset;
return msg_mclass_insert(mc, hr);
return msg_mclass_insert_with_mask(mc, hc, offset, 0);
}
/**Add a new header to the message class.