From: Olaf Hering Date: Tue, 7 Jul 2020 17:13:25 +0000 (+0200) Subject: configure: fix malloc check X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d1abf3fc6abc01fd5f8985af92726f87b5efd80a;p=qemu.git configure: fix malloc check Avoid random return value. Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459 Signed-off-by: Olaf Hering Message-Id: <20200707171326.16422-1-olaf@aepfle.de> Reviewed-by: Richard Henderson Signed-off-by: Thomas Huth --- diff --git a/configure b/configure index 814ed81279..f59418f6de 100755 --- a/configure +++ b/configure @@ -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