diff --git a/stepmania/src/CryptManager.cpp b/stepmania/src/CryptManager.cpp index b5a9fb0e2e..797a1c7d3b 100644 --- a/stepmania/src/CryptManager.cpp +++ b/stepmania/src/CryptManager.cpp @@ -23,6 +23,7 @@ static bool HashFile( RageFileBasic &f, unsigned char buf_hash[20], int iHash ) RString s; while( !f.AtEOF() ) { + s.erase(); if( f.Read(s, 1024*4) == -1 ) { LOG->Warn( "Error reading %s: %s", f.GetDisplayPath().c_str(), f.GetError().c_str() );