From: Daniel Stenberg Date: Sat, 20 Sep 2025 09:11:35 +0000 (+0200) Subject: curl_slist_append.md: clarify that a NULL pointer is not acceptable X-Git-Tag: rc-8_17_0-1~326 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7a26304a95baecc32405099c0628f0a76a700a20;p=thirdparty%2Fcurl.git curl_slist_append.md: clarify that a NULL pointer is not acceptable Closes #18627 --- diff --git a/docs/libcurl/curl_slist_append.md b/docs/libcurl/curl_slist_append.md index 75c6a57afd..b2766f728d 100644 --- a/docs/libcurl/curl_slist_append.md +++ b/docs/libcurl/curl_slist_append.md @@ -28,9 +28,10 @@ struct curl_slist *curl_slist_append(struct curl_slist *list, curl_slist_append(3) appends a string to a linked list of strings. The existing **list** should be passed as the first argument and the new list is -returned from this function. Pass in NULL in the **list** argument to create -a new list. The specified **string** has been appended when this function -returns. curl_slist_append(3) copies the string. +returned from this function. Pass in NULL in the **list** argument to create a +new list. The specified **string** has been appended when this function +returns. curl_slist_append(3) copies the string. The **string** argument must +be a valid string pointer and cannot be NULL. The list should be freed again (after usage) with curl_slist_free_all(3).