Fix valgrind warning about uninitialised variable