]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
configure: fix malloc check
authorOlaf Hering <olaf@aepfle.de>
Tue, 7 Jul 2020 17:13:25 +0000 (19:13 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 13 Jul 2020 09:40:52 +0000 (11:40 +0200)
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>
configure

index 814ed8127915a8af9381ab07844379c7791b6780..f59418f6de870a6d3e36b82115ebdec9aed5eed2 100755 (executable)
--- 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