From: nishi Date: Sun, 28 Jan 2024 12:52:27 +0000 (+0000) Subject: fix the bug in the file protocol support X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=31298f00171a94712fc4c8635901a3223344edc1;p=libw3.git fix the bug in the file protocol support git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@123 d27a3e52-49c5-7645-884c-6793ebffc270 --- diff --git a/Library/Core.c b/Library/Core.c index b88aa21..6ca0a40 100644 --- a/Library/Core.c +++ b/Library/Core.c @@ -60,6 +60,7 @@ struct W3* W3_Create(const char* protocol, const char* hostname, int port) { w3->headers = NULL; w3->size = 0; w3->data = NULL; + w3->sock = -1; w3->readsize = 512; w3->port = port; w3->protocol = __W3_Strdup(protocol); diff --git a/W3Version.h.p b/W3Version.h.p index 79c85ba..3e628ac 100644 --- a/W3Version.h.p +++ b/W3Version.h.p @@ -6,7 +6,7 @@ extern "C" { #endif -#define LIBW3_VERSION "2.0C" \ +#define LIBW3_VERSION "2.0D" \ SUFFIX #ifdef __cplusplus