From a8ad21f22c5ccf4886945a4a5f3c08e4feb21d61 Mon Sep 17 00:00:00 2001 From: Nebuleon Fumika Date: Fri, 18 Jan 2013 01:12:53 -0500 Subject: cppcheck: [spc700.cpp:148]: (error) Uninitialized variable: buffer --- source/spc700.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/spc700.cpp') 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); -- cgit v1.2.3