mirror of
https://github.com/curl/curl.git
synced 2026-06-08 14:04:15 +03:00
malloc is enough, due to memset
This commit is contained in:
parent
8576c478f8
commit
44f32ff705
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ static CURLcode test_unit2604(const char *arg)
|
|||
const char *cp;
|
||||
CURLcode result;
|
||||
if(i == 0) {
|
||||
cp0 = calloc(1, too_long + 1);
|
||||
cp0 = malloc(too_long + 1);
|
||||
fail_unless(cp0, "could not alloc too long value");
|
||||
memset(cp0, 'a', too_long);
|
||||
cp = cp0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue