From 31298f00171a94712fc4c8635901a3223344edc1 Mon Sep 17 00:00:00 2001 From: nishi Date: Sun, 28 Jan 2024 12:52:27 +0000 Subject: [PATCH] fix the bug in the file protocol support git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@123 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/Core.c | 1 + W3Version.h.p | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 -- 2.43.0