Loading CHANGES +4 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,10 @@ Changelog Daniel Stenberg (11 Mar 2009) - Kamil Dudka made the curl tool properly call curl_global_init() before any other libcurl function. Yang Tse (11 Mar 2009) - Added missing TELNET timeout support for Windows builds. This issue was reported by Pierre Brico. Loading include/curl/curl.h +3 −1 Original line number Diff line number Diff line Loading @@ -1510,7 +1510,9 @@ CURL_EXTERN void curl_free(void *p); * DESCRIPTION * * curl_global_init() should be invoked exactly once for each application that * uses libcurl * uses libcurl and before any call of other libcurl function. * * This function is not thread-safe! */ CURL_EXTERN CURLcode curl_global_init(long flags); Loading src/main.c +6 −4 Original line number Diff line number Diff line Loading @@ -3969,6 +3969,12 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) memset(&heads, 0, sizeof(struct OutStruct)); /* initialize curl library - do not call any libcurl functions before */ if (main_init() != CURLE_OK) { helpf(config->errors, "error initializing curl library\n"); return CURLE_FAILED_INIT; } #ifdef CURLDEBUG /* this sends all memory debug messages to a logfile named memdump */ env = curlx_getenv("CURL_MEMDEBUG"); Loading Loading @@ -4015,10 +4021,6 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) #endif /* inits */ if (main_init() != CURLE_OK) { helpf(config->errors, "error initializing curl library\n"); return CURLE_FAILED_INIT; } config->postfieldsize = -1; config->showerror=TRUE; config->use_httpget=FALSE; Loading Loading
CHANGES +4 −0 Original line number Diff line number Diff line Loading @@ -6,6 +6,10 @@ Changelog Daniel Stenberg (11 Mar 2009) - Kamil Dudka made the curl tool properly call curl_global_init() before any other libcurl function. Yang Tse (11 Mar 2009) - Added missing TELNET timeout support for Windows builds. This issue was reported by Pierre Brico. Loading
include/curl/curl.h +3 −1 Original line number Diff line number Diff line Loading @@ -1510,7 +1510,9 @@ CURL_EXTERN void curl_free(void *p); * DESCRIPTION * * curl_global_init() should be invoked exactly once for each application that * uses libcurl * uses libcurl and before any call of other libcurl function. * * This function is not thread-safe! */ CURL_EXTERN CURLcode curl_global_init(long flags); Loading
src/main.c +6 −4 Original line number Diff line number Diff line Loading @@ -3969,6 +3969,12 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) memset(&heads, 0, sizeof(struct OutStruct)); /* initialize curl library - do not call any libcurl functions before */ if (main_init() != CURLE_OK) { helpf(config->errors, "error initializing curl library\n"); return CURLE_FAILED_INIT; } #ifdef CURLDEBUG /* this sends all memory debug messages to a logfile named memdump */ env = curlx_getenv("CURL_MEMDEBUG"); Loading Loading @@ -4015,10 +4021,6 @@ operate(struct Configurable *config, int argc, argv_item_t argv[]) #endif /* inits */ if (main_init() != CURLE_OK) { helpf(config->errors, "error initializing curl library\n"); return CURLE_FAILED_INIT; } config->postfieldsize = -1; config->showerror=TRUE; config->use_httpget=FALSE; Loading