same procedure, simpler code

This commit is contained in:
Daniel Stenberg 2008-12-20 22:47:49 +00:00
parent 8a335ee7fd
commit 5be7d88b34

View File

@ -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);
}
/*