summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-07-04 23:09:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-07-05 10:10:49 +0200
commit671cc8e1103e6fba47fdb6a6a21099a149eae6e7 (patch)
tree9e10db4e82cf286ef5cd8eb2ae1bb6642dad1084 /lib/setopt.c
parent7f8b36b074b953ecf133b64c63caaaaf8017739a (diff)
downloadcurl-671cc8e1103e6fba47fdb6a6a21099a149eae6e7.tar.gz
urldata: make 'ftp_create_missing_dirs' a uchar
It only ever holds the values 0-2. Closes #9103
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 017ac1ae2..1bb44bd91 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -1342,7 +1342,7 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
(arg > CURLFTP_CREATE_DIR_RETRY))
result = CURLE_BAD_FUNCTION_ARGUMENT;
else
- data->set.ftp_create_missing_dirs = (int)arg;
+ data->set.ftp_create_missing_dirs = (unsigned char)arg;
break;
case CURLOPT_READDATA:
/*