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
This commit is contained in:
@@ -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 ***********************************************/
|
||||
|
||||
Reference in New Issue
Block a user