Tue May 20 13:32:28 EDT 2008 Pekka.Pessi@nokia.com

* su_taglist.c: fixed klocwork issues


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8623 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris 2008-05-25 15:11:19 +00:00
parent 5253e1b3e0
commit 007f1b4745
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
Sun May 25 11:10:29 EDT 2008
Sun May 25 11:11:12 EDT 2008

View File

@ -155,7 +155,7 @@ int t_snprintf(tagi_t const *t, char b[], size_t size)
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 @@ tagi_t *tl_vllist(tag_type_t tag, tag_value_t value, va_list ap)
va_end(aq);
t = rv = malloc(size);
if (rv == NULL)
return rv;
tagi[0].t_tag = tag;
tagi[0].t_value = value;