aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/http.c8
1 files changed, 1 insertions, 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);
}
/*