cURL / Mailing Lists / curl-library / Single Mail

curl-library

Seems like a BUG (was: Re: Unsetting option )

From: Christian Beutenmueller <flatline_at_web.de>
Date: Sat, 16 Aug 2003 14:09:11 +0200

Am Fri, 15 Aug 2003 21:32:59 -0700 (PDT)
hat Jeff Pohlmeyer <yetanothergeek_at_yahoo.com> kundgetan:

> > > What is the right way for "disabling" or "unsetting" options set
> > > by curl_easy_setopt?
>
> > > For function pointers? NULL
>
>
> It seems like I ran into trouble once before with this one:
> curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);
>
> So I used this instead:
> curl_easy_setopt(mycurl, CURLOPT_WRITEFUNCTION, fwrite);
Just tried it and you are right.
I attached a small c programm that shows the problem.
I get a "Segmentation Fault" in the third perform.
(Test environment: Linux, curl 7.10.6, gcc 3.2)
I have the next two days no time in hunting that bug down. But if nobody
does it until Monday I'll look again after it.

cu Christian

-- 
North American Terror Organization
Bringing war to the world since the 1950s!

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01

Received on 2003-08-16