mk-lib1521: fix the long return code check

It worked mostly by accident since it checked the variable from the
previous setopt invoke.

Closes #15372
This commit is contained in:
Daniel Stenberg 2024-10-23 00:11:12 +02:00
parent 605bc2d2c6
commit 0e18bd3940
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -441,7 +441,7 @@ MOO
MOO MOO
; ;
my $flongcheckzero = <<MOO my $flongcheckzero = <<MOO
if(first && present(first) && !bad_long(res, if(first && present(first) && !bad_long(first,
$name)) $name))
errlongzero("$name", first, __LINE__); errlongzero("$name", first, __LINE__);
MOO MOO
@ -594,7 +594,6 @@ MOO
print $fh <<FOOTER print $fh <<FOOTER
) )
curl_easy_setopt(curl, (CURLoption)1, 0); curl_easy_setopt(curl, (CURLoption)1, 0);
res = CURLE_OK; res = CURLE_OK;
test_cleanup: test_cleanup: