Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2025 20:22:43 +0000
From:      Alex Richardson <arichardson@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 79f578531f21 - main - libfetch: Fix -Wunterminated-string-initialization
Message-ID:  <6941bf93.37c0c.2dc55cd8@gitrepo.freebsd.org>

index | next in thread | raw e-mail

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 ***********************************************/


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6941bf93.37c0c.2dc55cd8>