summaryrefslogtreecommitdiff
path: root/lib/setopt.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2022-05-31 13:42:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2022-06-01 08:12:09 +0200
commitb1c1df0b6b82998142c0b974e4295e4288d545bf (patch)
treeec388559bef92023604b8cd46c16db848564e65d /lib/setopt.c
parentc6b2bc6db8725a88c85daab4aed62dda29c18817 (diff)
downloadcurl-b1c1df0b6b82998142c0b974e4295e4288d545bf.tar.gz
urldata: remove three unused booleans from struct UserDefined
- is_fwrite_set - free_referer - strip_path_slash Closes #8940
Diffstat (limited to 'lib/setopt.c')
-rw-r--r--lib/setopt.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/setopt.c b/lib/setopt.c
index 3dfb845ec..47b8f8471 100644
--- a/lib/setopt.c
+++ b/lib/setopt.c
@@ -1601,13 +1601,9 @@ CURLcode Curl_vsetopt(struct Curl_easy *data, CURLoption option, va_list param)
* Set data write callback
*/
data->set.fwrite_func = va_arg(param, curl_write_callback);
- if(!data->set.fwrite_func) {
- data->set.is_fwrite_set = 0;
+ if(!data->set.fwrite_func)
/* When set to NULL, reset to our internal default function */
data->set.fwrite_func = (curl_write_callback)fwrite;
- }
- else
- data->set.is_fwrite_set = 1;
break;
case CURLOPT_READFUNCTION:
/*