Browse Source

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 15 years ago
parent
commit
53634de06f
  1. 1
      src/buffer.c

1
src/buffer.c

@ -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