]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
docs: fix typo in CURLOPT_TRAILERFUNCTION example
authorKerem Kat <katkerem@amazon.com>
Tue, 26 Oct 2021 17:06:13 +0000 (17:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 26 Oct 2021 21:22:56 +0000 (23:22 +0200)
Closes #7910

docs/libcurl/opts/CURLOPT_TRAILERFUNCTION.3

index 07221977a2993369841fb49c342f14fc740d82eb..5ca44572ae09b3ccb6a8737b3719db1c496fcfa1 100644 (file)
@@ -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;
 }