src/server/daemon/httpparser.c

changeset 183
f33974f0dce0
parent 182
b982cc285c40
child 351
5533db9b64e2
--- a/src/server/daemon/httpparser.c	Wed Aug 30 22:05:56 2017 +0200
+++ b/src/server/daemon/httpparser.c	Thu Aug 31 16:29:49 2017 +0200
@@ -35,7 +35,7 @@
 
 
 HttpParser* http_parser_new(HTTPRequest *request) {
-    HttpParser *parser = malloc(sizeof(HttpParser));
+    HttpParser *parser = calloc(1, sizeof(HttpParser));
     parser->request = request;
     
     parser->state = 0;

mercurial