mirror of https://github.com/sysown/proxysql
Replace _counters{} initialization syntax with explicit memset() to ensure
the _counters array is properly zero-initialized. The _counters{} syntax
may not reliably zero-initialize arrays in all compiler implementations,
causing Valgrind to report use of uninitialized values when
add_and_reset() reads from the array.
Also remove the safety checks added previously since the root cause
is now properly fixed.
v3.0-test0213
parent
c2f82b3d4e
commit
fdbea2a32e
Loading…
Reference in new issue