From 5be7d88b34873ef6e16ace91ba6d89f4b3203e61 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 20 Dec 2008 22:47:49 +0000 Subject: same procedure, simpler code --- lib/http.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/http.c b/lib/http.c index 560d2e9d8..eaa50eeef 100644 --- a/lib/http.c +++ b/lib/http.c @@ -975,13 +975,7 @@ static CURLcode static send_buffer *add_buffer_init(void) { - send_buffer *blonk; - blonk = malloc(sizeof(send_buffer)); - if(blonk) { - memset(blonk, 0, sizeof(send_buffer)); - return blonk; - } - return NULL; /* failed, go home */ + return calloc(sizeof(send_buffer), 1); } /* -- cgit v1.2.3