tinyxml2 icon indicating copy to clipboard operation
tinyxml2 copied to clipboard

Initialize _pool array in tinyxml2.h

Open AlbertHungGarmin opened this issue 1 year ago • 1 comments

Added {} to the declaration of the _pool array in the tinyxml2.h file. This ensures that all elements of the _pool array are initialized to their default values. This change improves the safety and predictability of the code by preventing uninitialized values.

AlbertHungGarmin avatar May 20 '24 01:05 AlbertHungGarmin

I'm not sure when that was added to C++ - old compilers certainly don't like it. (I checked godbolt.) It's minor, so it's probably not worth breaking compatibility.

leethomason avatar Jul 06 '24 18:07 leethomason