cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: glibc detected invalid pointer

From: Angus March <angus_at_uducat.com>
Date: Wed, 18 Nov 2009 13:21:25 -0500

Jeff Pohlmeyer wrote:
> On Nov 18, 2009 at 11:47 AM, Angus March wrote:
>
>
>> headerlist = curl_slist_append(headerlist, "DELE " + *iter);
>>
>
> You can't pass a std::string to libcurl.
> Better use something like: ("DELE " + *ite).c_str()
>
    Actually, it's an astring, which has a const char * cast. If I used
an std::string I would have gotten a compile error.

> Also make sure headerlist is initialized to NULL before you use it.
>
    You mean like this:
struct curl_slist *headerlist=NULL;
because that's what's there.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-11-18

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET