]> Savannah Git Hosting - gnulib.git/commit
explicit_bzero test: Fix test failure due to GCC optimizations.
authorBruno Haible <bruno@clisp.org>
Sun, 29 Aug 2021 16:54:54 +0000 (18:54 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 29 Aug 2021 17:04:36 +0000 (19:04 +0200)
commita55152ea2eb061403ab128cd7a63772753e83cd0
tree96adc74f54a31519a6e86f454e40c87d8843e7fe
parent6c546529534fff50fa5afccfe772fa39174e2a6e
explicit_bzero test: Fix test failure due to GCC optimizations.

* tests/test-explicit_bzero.c (do_secret_stuff): Use static variable
'last_stackbuf'.
(main): Use an 'if' to combine the two do_secret_stuff invocations.
ChangeLog
tests/test-explicit_bzero.c