Date: Fri, 24 Apr 2026 15:29:29 +0000 From: John Baldwin <jhb@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Alex Richardson <arichardson@FreeBSD.org> Subject: git: 27a7b982ba6e - stable/15 - libfetch: Fix -Wunterminated-string-initialization Message-ID: <69eb8c59.34ab2.63aa431b@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=27a7b982ba6e008d10062de185ffd29fad8a8fc7 commit 27a7b982ba6e008d10062de185ffd29fad8a8fc7 Author: Alex Richardson <arichardson@FreeBSD.org> AuthorDate: 2025-12-16 18:08:51 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2026-04-24 15:26:39 +0000 libfetch: Fix -Wunterminated-string-initialization This defaults to an error in clang HEAD, use a char-by-char initializer instead. Reviewed by: emaste, jhb MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D52532 (cherry picked from commit 79f578531f21aa57307cbffd858a8a89e562aa5c) --- lib/libfetch/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libfetch/common.c b/lib/libfetch/common.c index f8a0517b6a5b..88b5e5a2f096 100644 --- a/lib/libfetch/common.c +++ b/lib/libfetch/common.c @@ -135,7 +135,7 @@ static struct fetcherr socks5_errlist[] = { }; /* End-of-Line */ -static const char ENDL[2] = "\r\n"; +static const char ENDL[2] = { '\r', '\n' }; /*** Error-reporting functions ***********************************************/home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69eb8c59.34ab2.63aa431b>
