From: Daniel Stenberg Date: Wed, 19 Nov 2003 08:19:20 +0000 (+0000) Subject: remove the wrong win32 comment and use global_init X-Git-Tag: curl-7_11_0~234 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d280124683a7d57cacb14729f964aec21eba7d7;p=thirdparty%2Fcurl.git remove the wrong win32 comment and use global_init --- diff --git a/docs/examples/getinmemory.c b/docs/examples/getinmemory.c index 7d66291234..e45beb070a 100644 --- a/docs/examples/getinmemory.c +++ b/docs/examples/getinmemory.c @@ -13,9 +13,6 @@ * This exact source code has not been verified to work. */ -/* to make this work under windows, use the win32-functions from the - win32socket.c file as well */ - #include #include @@ -51,6 +48,8 @@ int main(int argc, char **argv) chunk.memory=NULL; /* we expect realloc(NULL, size) to work */ chunk.size = 0; /* no data at this point */ + curl_global_init(CURL_GLOBAL_ALL); + /* init the curl session */ curl_handle = curl_easy_init();