aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-09-02 08:38:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-09-02 08:38:30 +0000
commit1822dd0549f47bf244f904e3fbecae75fae02fde (patch)
tree8d74cf48f411e9d7427967cbcff3b5a69e323959 /docs
parent751e49fb0a4ef13822639e78bfe65c6d082f5613 (diff)
Jon Topper pointed out a code example bug
Diffstat (limited to 'docs')
-rw-r--r--docs/libcurl-the-guide2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/libcurl-the-guide b/docs/libcurl-the-guide
index a196d8ead..f091dfe84 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");