]> granicus.if.org Git - apache/commitdiff
Don't do non-idempotent things in macro arguments.
authorTony Finch <fanf@apache.org>
Sun, 10 Sep 2000 05:02:59 +0000 (05:02 +0000)
committerTony Finch <fanf@apache.org>
Sun, 10 Sep 2000 05:02:59 +0000 (05:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86197 13f79535-47bb-0310-9956-ffa450edef68

modules/experimental/mod_charset_lite.c

index 8457d944ff4b9c05589bb59861b45875d15206db..dc22897d4a3662bcfdb35f1177bcb4a7deb88ab1 100644 (file)
@@ -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);
 }