From ede2c4804245d4069b629ef6e8c670ca033afdfc Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Mon, 23 Feb 2026 23:10:48 +0100 Subject: [PATCH] config: preserve const correctness Signed-off-by: Jason A. Donenfeld --- src/config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config.c b/src/config.c index 6b8aa58..806e3f8 100644 --- a/src/config.c +++ b/src/config.c @@ -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);