Fixed a warning regarding reading unitialised value from valgrind.