about unreachable code in some compilers (notably MSVC). What
used to be done by this macro is now done inline in the various
apr_bucket_foo_create() functions. [Cliff Woolley]
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88811
13f79535-47bb-0310-9956-
ffa450edef68
AP_DECLARE(apr_bucket *) ap_bucket_error_create(int error,
const char *buf, apr_pool_t *p)
{
- apr_bucket_do_create(ap_bucket_error_make(b, error, buf, p));
+ apr_bucket *b = (apr_bucket *)calloc(1, sizeof(*b));
+
+ APR_BUCKET_INIT(b);
+ return ap_bucket_error_make(b, error, buf, p);
}
AP_DECLARE_DATA const apr_bucket_type_t ap_bucket_type_error = {