git: 27a7b982ba6e - stable/15 - libfetch: Fix -Wunterminated-string-initialization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 24 Apr 2026 15:29:29 UTC
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 ***********************************************/