Skip to contentSkip to conversation

configure: fix malloc check

PATCH In review Olaf Hering 2 participants 2 messages Jul 7, 2020 – Jul 10, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configure: fix malloc check

Avoid random return value.

Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459

---
 configure | 1 +
 1 file changed, 1 insertion(+)
configure +1 -0
index 5d6f5a7f57..85f3662b8e 100755
@@ -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