Tue May 20 09:30:24 EDT 2008 Pekka.Pessi@nokia.com

* msg_basic.c: fixed klocwork issues



git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8612 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 13:55:30 +00:00
parent 3c079c410f
commit 951cdf55aa
2 changed files with 5 additions and 3 deletions

View File

@ -1 +1 @@
Sun May 25 09:54:31 EDT 2008
Sun May 25 09:55:22 EDT 2008

View File

@ -212,10 +212,11 @@ MSG_HEADER_CLASS(msg_, payload, NULL, "", pl_common, append,
msg_payload_t *msg_payload_create(su_home_t *home, void const *data, usize_t len)
{
msg_header_t *h = msg_header_alloc(home, msg_payload_class, len + 1);
msg_payload_t *pl = h->sh_payload;
if (pl) {
if (h) {
msg_payload_t *pl = (msg_payload_t *)h;
char *b = msg_header_data(h->sh_common);
if (data)
memcpy(b, data, len);
else
@ -227,6 +228,7 @@ msg_payload_t *msg_payload_create(su_home_t *home, void const *data, usize_t len
return pl;
}
return NULL;
}