summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorOlaf Hering2020-07-07 19:13:25 +0200
committerThomas Huth2020-07-13 11:40:52 +0200
commitd1abf3fc6abc01fd5f8985af92726f87b5efd80a (patch)
tree83da24b1408c1480000e534fd65b9497d25533a1 /configure
parentMerge remote-tracking branch 'remotes/stsquad/tags/pull-testing-and-misc-1107... (diff)
downloadqemu-d1abf3fc6abc01fd5f8985af92726f87b5efd80a.tar.gz
qemu-d1abf3fc6abc01fd5f8985af92726f87b5efd80a.tar.xz
qemu-d1abf3fc6abc01fd5f8985af92726f87b5efd80a.zip
configure: fix malloc check
Avoid random return value. Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459 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>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure1
1 files changed, 1 insertions, 0 deletions
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