git: ec6249ff56d8 - stable/14 - libfetch: Fix -Wunterminated-string-initialization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 29 May 2026 12:23:12 UTC
The branch stable/14 has been updated by dim:
URL: https://cgit.FreeBSD.org/src/commit/?id=ec6249ff56d85f35ee2e2e72130fad3f17a9bb53
commit ec6249ff56d85f35ee2e2e72130fad3f17a9bb53
Author: Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2025-12-16 18:08:51 +0000
Commit: Dimitry Andric <dim@FreeBSD.org>
CommitDate: 2026-05-29 12:23:01 +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 5115933b8e41..a57b278e40e1 100644
--- a/lib/libfetch/common.c
+++ b/lib/libfetch/common.c
@@ -136,7 +136,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 ***********************************************/