malloc is enough, due to memset

This commit is contained in:
Viktor Szakats 2025-08-02 12:42:40 +02:00
parent 8576c478f8
commit 44f32ff705
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -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;