cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-602484 ] Bad code in tutorial

From: <noreply_at_sourceforge.net>
Date: Fri, 30 Aug 2002 08:46:03 -0700

Bugs item #602484, was opened at 2002-08-30 08:46
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=602484&group_id=976

Category: documentation
Group: wrong content
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: Bad code in tutorial

Initial Comment:
The tutorial documentation (the-guide.html) section on
'Customizing Operations' contains the following code:

  struct curl_slist *headers;
  headers = curl_slist_append(headers, "Hey-server-hey:
how are you?");

headers should be initialised to NULL (as per other
examples in the documentation) otherwise
curl_slist_append() will barf.

Regards,

Jon Topper
<jon_at_a-h.net>

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=602484&group_id=976

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
Received on 2002-08-30