Fix printing of uninitialised memory on failure