add generic hashmap and memory usage fix
This commit is contained in:
@@ -12,6 +12,7 @@ cws_http *cws_http_parse(char *request_str, int sockfd) {
|
||||
if (request == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
memset(request, 0, sizeof(cws_http));
|
||||
|
||||
/* Insert socket file descriptor */
|
||||
request->sockfd = sockfd;
|
||||
|
||||
Reference in New Issue
Block a user