diff options
author | Nebuleon Fumika | 2013-01-18 01:12:53 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2013-01-18 01:12:53 -0500 |
commit | a8ad21f22c5ccf4886945a4a5f3c08e4feb21d61 (patch) | |
tree | bcfd0344621e5655955a24b7721dd8618856f58e /source | |
parent | 4b642ccd3d27def735098db3f755a9d3b07c4dc1 (diff) | |
download | snes9x2005-a8ad21f22c5ccf4886945a4a5f3c08e4feb21d61.tar.gz snes9x2005-a8ad21f22c5ccf4886945a4a5f3c08e4feb21d61.tar.bz2 snes9x2005-a8ad21f22c5ccf4886945a4a5f3c08e4feb21d61.zip |
cppcheck: [spc700.cpp:148]: (error) Uninitialized variable: buffer
Diffstat (limited to 'source')
-rw-r--r-- | source/spc700.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/spc700.cpp b/source/spc700.cpp index 69ed120..c12cd08 100644 --- a/source/spc700.cpp +++ b/source/spc700.cpp @@ -143,6 +143,8 @@ void STOP (char *s) #ifdef DEBUGGER S9xAPUOPrint (buffer, IAPU.PC - IAPU.RAM); +#else + buffer[0] = '\0'; #endif sprintf (String, "Sound CPU in unknown state executing %s at %04X\n%s\n", s, IAPU.PC - IAPU.RAM, buffer); |