configure: fix malloc check

Avoid random return value.

Fixes commit f2dfe54c74

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Message-Id: <20200707171326.16422-1-olaf@aepfle.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
Olaf Hering 2020-07-07 19:13:25 +02:00 committed by Thomas Huth
parent 9f526fce49
commit d1abf3fc6a

1
configure vendored
View File

@ -6343,6 +6343,7 @@ int main(void) {
if (tmp != NULL) {
return *(int *)(tmp + 2);
}
return 1;
}
EOF
if compile_prog "$CPU_CFLAGS -Werror -fsanitize=undefined" ""; then