From b7af164389479bdb0779afef959cccce1dd0b61b Mon Sep 17 00:00:00 2001 From: Tony Finch Date: Sun, 10 Sep 2000 05:02:59 +0000 Subject: [PATCH] Don't do non-idempotent things in macro arguments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86197 13f79535-47bb-0310-9956-ffa450edef68 --- modules/experimental/mod_charset_lite.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/experimental/mod_charset_lite.c b/modules/experimental/mod_charset_lite.c index 8457d944ff..dc22897d4a 100644 --- a/modules/experimental/mod_charset_lite.c +++ b/modules/experimental/mod_charset_lite.c @@ -375,18 +375,22 @@ static void xlate_register_filter(request_rec *r) static apr_status_t send_downstream(ap_filter_t *f, const char *tmp, apr_ssize_t len) { ap_bucket_brigade *bb; + ap_bucket *b; bb = ap_brigade_create(f->r->pool); - AP_BRIGADE_INSERT_TAIL(bb, ap_bucket_create_transient(tmp, len)); + b = ap_bucket_create_transient(tmp, len); + AP_BRIGADE_INSERT_TAIL(bb, b); return ap_pass_brigade(f->next, bb); } static apr_status_t send_eos(ap_filter_t *f) { ap_bucket_brigade *bb; + ap_bucket *b; bb = ap_brigade_create(f->r->pool); - AP_BRIGADE_INSERT_TAIL(bb, ap_bucket_create_eos()); + b = ap_bucket_create_eos(); + AP_BRIGADE_INSERT_TAIL(bb, b); return ap_pass_brigade(f->next, bb); } -- 2.50.1