From: Tony Finch Date: Sun, 10 Sep 2000 05:02:59 +0000 (+0000) Subject: Don't do non-idempotent things in macro arguments. X-Git-Tag: APACHE_2_0_ALPHA_7~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b7af164389479bdb0779afef959cccce1dd0b61b;p=apache 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 --- 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); }