[Freeswitch-svn] [commit] r8623 - in freeswitch/trunk/libs/sofia-sip: . libsofia-sip-ua/su
Freeswitch SVN
mikej at freeswitch.org
Sun May 25 11:11:19 EDT 2008
Author: mikej
Date: Sun May 25 11:11:19 2008
New Revision: 8623
Modified:
freeswitch/trunk/libs/sofia-sip/.update
freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c
Log:
Tue May 20 13:32:28 EDT 2008 Pekka.Pessi at nokia.com
* su_taglist.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 11:11:19 2008
@@ -1 +1 @@
-Sun May 25 11:10:29 EDT 2008
+Sun May 25 11:11:12 EDT 2008
Modified: freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c (original)
+++ freeswitch/trunk/libs/sofia-sip/libsofia-sip-ua/su/su_taglist.c Sun May 25 11:11:19 2008
@@ -155,7 +155,7 @@
if (m < 0)
return m;
- if (m == 0 && (size_t)n < size)
+ if (m == 0 && 0 < n && (size_t)n < size)
b[--n] = '\0';
return n + m;
@@ -756,6 +756,8 @@
va_end(aq);
t = rv = malloc(size);
+ if (rv == NULL)
+ return rv;
tagi[0].t_tag = tag;
tagi[0].t_value = value;
More information about the Freeswitch-svn
mailing list