unit2604.c fix to abort on failed alloc

This commit is contained in:
Viktor Szakats 2025-08-02 13:04:57 +02:00
parent f212328241
commit 2f1e3083ba
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -76,7 +76,7 @@ static CURLcode test_unit2604(const char *arg)
#endif
char *cp0 = malloc(too_long + 1);
fail_unless(cp0, "could not alloc too long value");
abort_unless(cp0, "could not alloc too long value");
memset(cp0, 'a', too_long);
for(i = 0; list[i].home; i++) {