protect buffer_is_empty() from NULL buffers

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1969 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.17
Jan Kneschke 16 years ago
parent ea872bea37
commit 53634de06f

@ -503,6 +503,7 @@ buffer *buffer_init_string(const char *str) {
}
int buffer_is_empty(buffer *b) {
if (!b) return 1;
return (b->used == 0);
}

Loading…
Cancel
Save