Fixing a valgrind complaint of changing uninitialized values