cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: multithread curl. unexpected SIGSEGV

From: Maxime Larocque <maxmtl2002_at_yahoo.ca>
Date: Mon, 17 Sep 2012 09:53:57 -0400

Le 17/09/2012 09:40, Azat Khuzhin a écrit :
> URL with https protocol comes after redirect.
> But because of some specific stuff that this application must do, I
> must handle redirect myself.
> Maybe I forgot something.
>
> Here is sample of code, that I use for this:
> https://gist.github.com/3737325
>
 From your code:

char *url[URL_MAX];
getUrl(url);
if (!strlen(url)) {
break;
} The "url" seems to be a table of pointer to strings, no an actual C
string. Remove the *, correct its usage everywhere. It may explain why a
string is converted to a pointer... Do you compile with -Wall -Werror?
It may have helped. Maxime

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-09-17