- make sure the string isn't blank before appending it

SVN revision: 17560
This commit is contained in:
Dan Sinclair 2005-10-15 05:19:11 +00:00 committed by Dan Sinclair
parent 5f828e6fdb
commit 051b5f6fc7
1 changed files with 2 additions and 1 deletions

View File

@ -270,6 +270,7 @@ _strbuf_append(char *s, char *s2, int *len, int *alloc)
if (!s2) return s;
l2 = strlen(s2);
if (l2 == 0) return s;
tlen = *len + l2;
if (tlen > *alloc)
{