diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-01-07 01:20:48 -0500 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-01-07 02:06:08 -0500 |
commit | 51e141c803e8bdf9d37f20f0ddc8550b91537973 (patch) | |
tree | 23bd4cdc00837e7235245e5e7e899bb7aaac3637 /src/mod_authn_gssapi.c | |
parent | bade1c0319f1d9be00a5cf1b3655225aae1eabb0 (diff) | |
download | lighttpd-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/mod_authn_gssapi.c')
-rw-r--r-- | src/mod_authn_gssapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_authn_gssapi.c b/src/mod_authn_gssapi.c index bf36e6b6..a42fbeed 100644 --- a/src/mod_authn_gssapi.c +++ b/src/mod_authn_gssapi.c @@ -688,7 +688,7 @@ static handler_t mod_authn_gssapi_basic(request_st * const r, void *p_d, const h } if (strchr(username->ptr, '@') == NULL) { - user_at_realm = buffer_init_buffer(username); + buffer_copy_buffer((user_at_realm = buffer_init()), username); buffer_append_str2(user_at_realm, CONST_STR_LEN("@"), BUF_PTR_LEN(require->realm)); } |