git: 79f578531f21 - main - libfetch: Fix -Wunterminated-string-initialization
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 16 Dec 2025 20:22:43 UTC
The branch main has been updated by arichardson:
URL: https://cgit.FreeBSD.org/src/commit/?id=79f578531f21aa57307cbffd858a8a89e562aa5c
commit 79f578531f21aa57307cbffd858a8a89e562aa5c
Author: Alex Richardson <arichardson@FreeBSD.org>
AuthorDate: 2025-12-16 18:08:51 +0000
Commit: Alex Richardson <arichardson@FreeBSD.org>
CommitDate: 2025-12-16 20:21:45 +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
---
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 786d5647d993..2e1364edff04 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 ***********************************************/