mirror of
https://github.com/curl/curl.git
synced 2026-06-08 05:04:19 +03:00
unit2604.c fix to abort on failed alloc
This commit is contained in:
parent
f212328241
commit
2f1e3083ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue