Simpler check for 0 stringlength.

SVN revision: 17564
This commit is contained in:
sebastid 2005-10-15 06:54:42 +00:00 committed by sebastid
parent 051b5f6fc7
commit ed1aa8117a
1 changed files with 1 additions and 2 deletions

View File

@ -268,9 +268,8 @@ _strbuf_append(char *s, char *s2, int *len, int *alloc)
int l2;
int tlen;
if (!s2) return s;
if ((!s2) || (!s2[0])) return s;
l2 = strlen(s2);
if (l2 == 0) return s;
tlen = *len + l2;
if (tlen > *alloc)
{