aboutsummaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorNebuleon Fumika2013-01-18 01:12:53 -0500
committerNebuleon Fumika2013-01-18 01:12:53 -0500
commita8ad21f22c5ccf4886945a4a5f3c08e4feb21d61 (patch)
treebcfd0344621e5655955a24b7721dd8618856f58e /source
parent4b642ccd3d27def735098db3f755a9d3b07c4dc1 (diff)
downloadsnes9x2005-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.cpp2
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);