summaryrefslogtreecommitdiff
path: root/libpcsxcore/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'libpcsxcore/debug.c')
-rw-r--r--libpcsxcore/debug.c14
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);