configure: make configuration with address sanitizer find zlib.

The test program has a leak, so address sanitizer complains and makes it
"fail" the zlib detection test!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2024-11-22 12:28:16 +10:30
parent a90d9c9f4f
commit 8132d19ab5

6
configure vendored
View File

@@ -378,7 +378,11 @@ code=
int main(void)
{
gzFile f = gzopen("/dev/null", "wb");
return f != NULL ? 0 : 1;
if (f != NULL) {
gzclose(f);
return 0;
}
return 1;
}
/*END*/
var=HAVE_GOOD_LIBSODIUM