diff options
author | Kerem Kat <katkerem@amazon.com> | 2021-10-26 17:06:13 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2021-10-26 23:22:56 +0200 |
commit | c40914dbdb2214e30f598bf88beca47f21d69ad8 (patch) | |
tree | b1d2e60315cc232eb2130c7ffe1f972583e8b51e /docs | |
parent | 79104e4690c9b9a1c446896c197aba6eca28ee16 (diff) | |
download | curl-c40914dbdb2214e30f598bf88beca47f21d69ad8.tar.gz |
docs: fix typo in CURLOPT_TRAILERFUNCTION example
Closes #7910
Diffstat (limited to 'docs')
-rw-r--r-- | docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 b/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 index 07221977a..5ca44572a 100644 --- a/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 @@ -66,7 +66,7 @@ HTTP static int trailer_cb(struct curl_slist **tr, void *data) { /* libcurl will free the list */ - tr = curl_slist_append(*tr, "My-super-awesome-trailer: trailer-stuff"); + *tr = curl_slist_append(*tr, "My-super-awesome-trailer: trailer-stuff"); return CURL_TRAILERFUNC_OK; } |