Commit e00e8bf3c02395120f992d4da80334a03fc244bd

Baptiste 2024-07-23T12:41:45

fixed compilation error on linux

diff --git a/http/socket.c b/http/socket.c
index cf27876..9c9092c 100644
--- a/http/socket.c
+++ b/http/socket.c
@@ -56,7 +56,7 @@ p_socket socket_init_listen (p_socket s, const s_str *host,
   struct addrinfo *res;
   struct addrinfo *res0;
   s32 e;
-  const char *error_reason;
+  const char *error_reason = "error";
   t_socket sockfd;
   assert(s);
   assert(host);
diff --git a/http/socket_buf.c b/http/socket_buf.c
index 1d2e8c6..48b09f5 100644
--- a/http/socket_buf.c
+++ b/http/socket_buf.c
@@ -56,7 +56,7 @@ s_socket_buf * socket_buf_init_connect (s_socket_buf *sb,
   struct addrinfo *res;
   struct addrinfo *res0;
   s32 e;
-  const char *error_reason;
+  const char *error_reason = "error";
   t_socket sockfd;
   s_socket_buf tmp;
   assert(sb);