From 432b809e8f295e9307bc50310441247cdc2b6c32 Mon Sep 17 00:00:00 2001 From: nishi Date: Thu, 25 Apr 2024 05:04:06 +0000 Subject: [PATCH] fix segfault git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@315 d27a3e52-49c5-7645-884c-6793ebffc270 --- Library/Core.c | 1 + Library/DNS.c | 2 +- Library/FTP.c | 2 +- Library/Util.c | 2 +- W3Version.h.m4 | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Library/Core.c b/Library/Core.c index f298007..7ce1bfb 100644 --- a/Library/Core.c +++ b/Library/Core.c @@ -137,6 +137,7 @@ struct W3* W3_Create(const char* protocol, const char* hostname, int port) { w3->path = NULL; w3->events = NULL; w3->headers = NULL; + w3->hostname = NULL; w3->size = 0; w3->data = NULL; w3->sock = -1; diff --git a/Library/DNS.c b/Library/DNS.c index 355d22f..6e7fdee 100644 --- a/Library/DNS.c +++ b/Library/DNS.c @@ -38,8 +38,8 @@ #include #ifdef __MINGW32__ -#include #include +#include #include #include #else diff --git a/Library/FTP.c b/Library/FTP.c index 9dfe6af..833cdfc 100644 --- a/Library/FTP.c +++ b/Library/FTP.c @@ -40,8 +40,8 @@ #include #ifdef __MINGW32__ -#include #include +#include #else #include #include diff --git a/Library/Util.c b/Library/Util.c index dc8d30a..7b6144d 100644 --- a/Library/Util.c +++ b/Library/Util.c @@ -40,8 +40,8 @@ #include #ifdef __MINGW32__ -#include #include +#include #else #include #include diff --git a/W3Version.h.m4 b/W3Version.h.m4 index f28bb74..23e4752 100644 --- a/W3Version.h.m4 +++ b/W3Version.h.m4 @@ -60,7 +60,7 @@ const char* W3_Get_Version(void); * @note W3_Get_Version を使用することを検討してください。 * */ -#define LIBW3_VERSION "2.23A" \ +#define LIBW3_VERSION "2.23B" \ SUFFIX ifdef({{HTTP_SUPPORT}}, {{/** -- 2.43.0