Fixes a valgrind warning about using unitialised memory. Hopefully fixes crashes on several platforms reported through fate.