From 008da1449e295c68ec9168a257a89c7cbca72f16 Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Mon, 12 Mar 2007 03:33:51 +0000 Subject: [PATCH] Fix segv on logout (thanks to Christian Klein). SVN revision: 28661 --- src/ipc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ipc.c b/src/ipc.c index 1285f03c..b1325962 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -911,7 +911,8 @@ IPC_Exit(const char *params, Client * c __UNUSED__) param1[0] = 0; l = 0; - sscanf(params, "%1000s %n", param1, &l); + if (params) + sscanf(params, "%1000s %n", param1, &l); p2 = (l > 0) ? params + l : NULL; if (!param1[0])