From: Daniel Stenberg Date: Mon, 2 Sep 2002 08:38:30 +0000 (+0000) Subject: Jon Topper pointed out a code example bug X-Git-Tag: curl-7_10~65 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1822dd0549f47bf244f904e3fbecae75fae02fde;p=thirdparty%2Fcurl.git Jon Topper pointed out a code example bug --- diff --git a/docs/libcurl-the-guide b/docs/libcurl-the-guide index a196d8ead7..f091dfe840 100644 --- a/docs/libcurl-the-guide +++ b/docs/libcurl-the-guide @@ -753,7 +753,7 @@ Customizing Operations request, and you're free to pass any amount of extra headers that you think fit. Adding headers are this easy: - struct curl_slist *headers; + struct curl_slist *headers=NULL; /* init to NULL is important */ headers = curl_slist_append(headers, "Hey-server-hey: how are you?"); headers = curl_slist_append(headers, "X-silly-content: yes");