Fix: different encoding results when compiled with different GCC versions.
Difference encoding results were observed for QP27 of Cactus in randomaccess when compiled with different GCC versions. This MR fixed the issue by adding initializers for variables related to Valgrind errors.