Fix buffer_reset to make an empty string

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2270 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
Stefan Bühler 2008-08-01 11:24:06 +00:00
parent 6ce1dfb0d1
commit f7dd7203e2
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ void buffer_reset(buffer *b) {
free(b->ptr);
b->ptr = NULL;
b->size = 0;
} else if (b->size) {
b->ptr[0] = '\0';
}
b->used = 0;