* [PATCH v1] configure: fix malloc check
@ 2020-07-07 17:13 Olaf Hering
2020-07-10 19:02 ` Richard Henderson
0 siblings, 1 reply; 2+ messages in thread
From: Olaf Hering @ 2020-07-07 17:13 UTC (permalink / raw)
To: Olaf Hering, qemu-devel
Avoid random return value.
Fixes commit f2dfe54c74f768a5bf78c9e5918918727f9d9459
Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
configure | 1 +
1 file changed, 1 insertion(+)
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-07-10 19:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-07 17:13 [PATCH v1] configure: fix malloc check Olaf Hering
2020-07-10 19:02 ` Richard Henderson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).