summaryrefslogtreecommitdiff
path: root/src/response.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-01-07 01:20:48 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2022-01-07 02:06:08 -0500
commit51e141c803e8bdf9d37f20f0ddc8550b91537973 (patch)
tree23bd4cdc00837e7235245e5e7e899bb7aaac3637 /src/response.c
parentbade1c0319f1d9be00a5cf1b3655225aae1eabb0 (diff)
downloadlighttpd-git-51e141c803e8bdf9d37f20f0ddc8550b91537973.tar.gz
[multiple] remove buffer_init_buffer()
remove (minor) convenience func; easy to replace Like buffer_init_string(), buffer_init_buffer() was used in only a few places at startup or in cold funcs, so better off removed from buffer.c
Diffstat (limited to 'src/response.c')
-rw-r--r--src/response.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/response.c b/src/response.c
index 714c6046..4ea2dea9 100644
--- a/src/response.c
+++ b/src/response.c
@@ -596,7 +596,7 @@ http_response_errdoc_init (request_st * const r)
const buffer * const vb =
http_header_response_get(r, HTTP_HEADER_WWW_AUTHENTICATE,
CONST_STR_LEN("WWW-Authenticate"));
- if (NULL != vb) www_auth = buffer_init_buffer(vb);
+ if (NULL != vb) buffer_copy_buffer((www_auth = buffer_init()), vb);
}
buffer_reset(&r->physical.path);