diff mbox series

[v1] configure: fix malloc check

Message ID 20200707171326.16422-1-olaf@aepfle.de (mailing list archive)
State New, archived
Headers show
Series [v1] configure: fix malloc check | expand

Commit Message

Olaf Hering July 7, 2020, 5:13 p.m. UTC
Avoid random return value.

Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 configure | 1 +
 1 file changed, 1 insertion(+)

Comments

Richard Henderson July 10, 2020, 7:02 p.m. UTC | #1
On 7/7/20 10:13 AM, Olaf Hering wrote:
> Avoid random return value.
> 
> Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459
> 
> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> ---
>  configure | 1 +
>  1 file changed, 1 insertion(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

r~
diff mbox series

Patch

diff --git a/configure b/configure
index 5d6f5a7f57..85f3662b8e 100755
--- a/configure
+++ b/configure
@@ -6305,6 +6305,7 @@  int main(void) {
     if (tmp != NULL) {
         return *(int *)(tmp + 2);
     }
+    return 1;
 }
 EOF
   if compile_prog "$CPU_CFLAGS -Werror -fsanitize=undefined" ""; then