[Freeswitch-svn] [commit] r8612 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/msg
Freeswitch SVN
mikej at freeswitch.org
Sun May 25 09:55:30 EDT 2008
Author: mikej
Date: Sun May 25 09:55:30 2008
New Revision: 8612
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_basic.c
Log:
Tue May 20 09:30:24 EDT 2008 Pekka.Pessi at nokia.com
* msg_basic.c: fixed klocwork issues
Modified: freeswitch/trunk/libs/sofia-sip/.update
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/.update (original)
+++ freeswitch/trunk/libs/sofia-sip/.update Sun May 25 09:55:30 2008
@@ -1 +1 @@
-Sun May 25 09:54:31 EDT 2008
+Sun May 25 09:55:22 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_basic.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_basic.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/msg/msg_basic.c Sun May 25 09:55:30 2008
@@ -212,10 +212,11 @@
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 @@
return pl;
}
+
return NULL;
}
More information about the Freeswitch-svn
mailing list