binarycrusader / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
0 stars 0 forks source link

curlget sample doesn't handle curl_global_init failing #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
trunk/src/samples/libcurl/curlget.c
12 int main(int argc, char * argv[]) {
28   /* Initializing curl... has to happen exactly once in the program */
29   curl_global_init( CURL_GLOBAL_ALL );
35     curl_global_cleanup();

http://curl.haxx.se/libcurl/c/curl_global_init.html
RETURN VALUE

If this function returns non-zero, something went wrong and you cannot use
the other curl functions. 

Original issue reported on code.google.com by timel...@gmail.com on 6 Nov 2008 at 8:46

GoogleCodeExporter commented 9 years ago
Thanks for the report; this has been fixed in svn rev 297.

Original comment by dominiqu...@gmail.com on 12 Nov 2008 at 8:23

GoogleCodeExporter commented 9 years ago

Original comment by dominiqu...@gmail.com on 12 Nov 2008 at 8:23