aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-12-20 22:47:49 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-12-20 22:47:49 +0000
commit5be7d88b34873ef6e16ace91ba6d89f4b3203e61 (patch)
tree47b4e0b14153e16637735cbf72d1002765e6f171
parent8a335ee7fd48689e8c233f14b0c2e4ed2c74a634 (diff)
same procedure, simpler code
-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);
}
/*