diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-09 13:55:04 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-09 13:55:04 +0000 |
| commit | 6acd7c489d38a226f002ac444e888875cc730fc8 (patch) | |
| tree | 4b7b527a0045816a6d1bc3d753a0c27af9c6f5ef /libpcsxcore/debug.c | |
| parent | 7a96c9925d0c625b8fe84e6ef08c01ef00e2f5a2 (diff) | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31479 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'libpcsxcore/debug.c')
| -rw-r--r-- | libpcsxcore/debug.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libpcsxcore/debug.c b/libpcsxcore/debug.c index c67e10e4..61bc5d85 100644 --- a/libpcsxcore/debug.c +++ b/libpcsxcore/debug.c @@ -331,7 +331,7 @@ void StopDebugger() { if (debugger_active) { StopServer(); SysPrintf(_("Debugger stopped.\n")); - }
+ } if (MemoryMap != NULL) { free(MemoryMap); @@ -418,7 +418,7 @@ static void ProcessCommands() { if (!HasClient()) return; if (ReadSocket(cmd, 256) > 0) { - arguments = 0; + arguments = NULL; if (strlen(cmd) <= 2) { code = 0; } else if (strlen(cmd) == 3) { @@ -434,15 +434,15 @@ static void ProcessCommands() { while (arguments && *arguments && *arguments == 0x20) arguments++; - if (!*arguments) - arguments = 0; + if (*arguments == '\0') + arguments = NULL; - dumping = 0; - save = 0; + dumping = NULL; + save = NULL; switch (code) { case 0x100: - sprintf(reply, "200 %s\r\n", arguments); + sprintf(reply, "200 %s\r\n", arguments == NULL ? "OK" : arguments); break; case 0x101: sprintf(reply, "201 %s\r\n", PACKAGE_VERSION); |
