git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
talloc: Fix the O3 developer build
[samba.git]
/
lib
/
talloc
/
testsuite.c
diff --git
a/lib/talloc/testsuite.c
b/lib/talloc/testsuite.c
index 9f830390d364cf0ba6bbf69c89f54a8140902b3d..34410b81c3f3a12b262e9dd02a8174a0a89d5715 100644
(file)
--- a/
lib/talloc/testsuite.c
+++ b/
lib/talloc/testsuite.c
@@
-1895,10
+1895,13
@@
static bool test_magic_protection(void)
/* Then the attack takes effect when the memory's freed. */
talloc_free(pool);
/* Then the attack takes effect when the memory's freed. */
talloc_free(pool);
- } else {
- while (wait(&exit_status) != pid);
+
+ /* Never reached. Make compilers happy */
+ return true;
}
}
+ while (wait(&exit_status) != pid);
+
if (!WIFEXITED(exit_status)) {
printf("Child exited through unexpected abnormal means\n");
return false;
if (!WIFEXITED(exit_status)) {
printf("Child exited through unexpected abnormal means\n");
return false;