From 6ea465f3ba6c57671d82a4f6e03521887cc25edd Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Fri, 16 Sep 2011 16:40:52 +0000 Subject: [PATCH] Add comment that the check for empty brigade at the start of the function is essential. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1171655 13f79535-47bb-0310-9956-ffa450edef68 --- modules/filters/mod_deflate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/filters/mod_deflate.c b/modules/filters/mod_deflate.c index 7687a53f3f..f2156aaf55 100644 --- a/modules/filters/mod_deflate.c +++ b/modules/filters/mod_deflate.c @@ -448,6 +448,7 @@ static apr_status_t deflate_out_filter(ap_filter_t *f, char *token; const char *encoding; + /* We have checked above that bb is not empty */ e = APR_BRIGADE_LAST(bb); if (APR_BUCKET_IS_EOS(e)) { /* -- 2.40.0