curl-library
Re: HTTP client as new child process
From: Linus Nielsen Feltzing <linus_at_haxx.se>
Date: Wed, 20 Feb 2013 15:36:32 +0100
Date: Wed, 20 Feb 2013 15:36:32 +0100
On 02/20/2013 02:38 PM, Ajay Tanpure wrote:
> I am getting data from parent process. When i run this program without
> any libcurl functionality, i.e. standalone program for process
> communication, i get data in "a" then why not in case with libcurl?
When you don't initialize a pointer (like in your example libcurl code),
anything can happen, since the pointer can point anywhere in memory.
So if you're not initializing "a" in your other code, it probably works
because of pure luck.
Linus
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-02-20