From 092da03a4868c2ec8552adb9d95148895ddf3ec6 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Thu, 2 Sep 2004 17:55:31 +0000 Subject: [PATCH] Fix segv in debug command. Pointed out by Vadik Mironov . SVN revision: 11502 --- src/ipc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ipc.c b/src/ipc.c index 7bef3a75..d633554a 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -4433,6 +4433,9 @@ IPC_Debug(const char *params, Client * c __UNUSED__) int l; const char *p; + if (!params) + return; + p = params; l = 0; sscanf(p, "%1000s %n", param, &l);