diff --git a/src/movie.cpp b/src/movie.cpp index 53e324fc..0778f2a3 100644 --- a/src/movie.cpp +++ b/src/movie.cpp @@ -247,7 +247,7 @@ void MovieRecord::dumpJoy(EMUFILE* os, uint8 joystate) void MovieRecord::parseJoy(EMUFILE* is, uint8& joystate) { - char buf[8]; + char buf[8] = {0}; is->fread(buf,8); joystate = 0; for(int i=0;i<8;i++)