summaryrefslogtreecommitdiffstats
path: root/stream/http.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/http.c')
-rw-r--r--stream/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/stream/http.c b/stream/http.c
index 1e7b8dab76..65abe90677 100644
--- a/stream/http.c
+++ b/stream/http.c
@@ -300,9 +300,8 @@ HTTP_header_t *
http_new_header(void) {
HTTP_header_t *http_hdr;
- http_hdr = malloc(sizeof(HTTP_header_t));
+ http_hdr = calloc(1, sizeof(*http_hdr));
if( http_hdr==NULL ) return NULL;
- memset( http_hdr, 0, sizeof(HTTP_header_t) );
return http_hdr;
}