mirror of
https://github.com/curl/curl.git
synced 2025-04-24 16:40:32 +08:00
ftp: Mark a const buffer as const
This commit is contained in:
parent
dff74ae8bb
commit
ddb87160f5
@ -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) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user