From 6acd7c489d38a226f002ac444e888875cc730fc8 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Fri, 9 Oct 2009 13:55:04 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@31479 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- libpcsxcore/debug.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'libpcsxcore/debug.c') 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); -- cgit v1.2.3