config: preserve const correctness

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2026-02-23 23:10:48 +01:00
parent 0cbe9938e1
commit ede2c48042

View file

@ -506,8 +506,9 @@ error:
bool config_read_line(struct config_ctx *ctx, const char *input)
{
size_t len, cleaned_len = 0;
char *line, *comment;
const char *comment;
bool ret = true;
char *line;
/* This is what strchrnul is for, but that isn't portable. */
comment = strchr(input, COMMENT_CHAR);