]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
ftp: Mark a const buffer as const
authorDan Fandrich <dan@coneharvesters.com>
Fri, 1 Mar 2024 09:07:02 +0000 (01:07 -0800)
committerDan Fandrich <dan@coneharvesters.com>
Fri, 1 Mar 2024 09:16:24 +0000 (01:16 -0800)
lib/ftp.c

index 4deb841b3ae0b3d4eb5085492a68a7d38302c21f..8881bd364a3202a5363b08b663575d6818415945 100644 (file)
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -272,7 +272,7 @@ static CURLcode ftp_cw_lc_write(struct Curl_easy *data,
                                 struct Curl_cwriter *writer, int type,
                                 const char *buf, size_t blen)
 {
-  static char nl = '\n';
+  static const char nl = '\n';
   struct ftp_cw_lc_ctx *ctx = (struct ftp_cw_lc_ctx *)writer;
 
   if(!(type & CLIENTWRITE_BODY) ||