From: Kerem Kat Date: Tue, 26 Oct 2021 17:06:13 +0000 (+0000) Subject: docs: fix typo in CURLOPT_TRAILERFUNCTION example X-Git-Tag: curl-7_80_0~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c40914dbdb2214e30f598bf88beca47f21d69ad8;p=thirdparty%2Fcurl.git docs: fix typo in CURLOPT_TRAILERFUNCTION example Closes #7910 --- diff --git a/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 b/docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3 index 07221977a2..5ca44572ae 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; }