diff options
author | lloyd <[email protected]> | 2009-01-31 12:29:53 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2009-01-31 12:29:53 +0000 |
commit | 3f5c33c9ece2e7373dde96af045cd5a4853697be (patch) | |
tree | 9eb7db0cb7b13d1f55da7ed7fd569e379ae77556 /src/rng/randpool/randpool.cpp | |
parent | 59471d5ad33fc136e0f2c02c9400f50e1515e904 (diff) |
A new warning in glibc triggers if memset is called with a constant size
of 0 (on the theory this is a mistake and the second and third arguments
were swapped). However the GCC inliner apparently is good enough that it
is triggering on code that just happens to create a zero length SecureVector
or equivalent - the constants get propagated so __builtin_constant_p returns
true.
Add an if(n) in clear_mem so we skip calling memset if the size is zero.
Diffstat (limited to 'src/rng/randpool/randpool.cpp')
0 files changed, 0 insertions, 0 deletions