From 6f4efa010b94984347112fa65e89469dd7bfc1bf Mon Sep 17 00:00:00 2001 From: Ari Johnson Date: Fri, 17 Dec 2010 19:43:34 +0000 Subject: [PATCH] Don't lookup_player() a NULL string --- src/extchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extchat.c b/src/extchat.c index 368f0f4..5f43962 100644 --- a/src/extchat.c +++ b/src/extchat.c @@ -2584,7 +2584,7 @@ do_chan_chown(dbref player, const char *name, const char *newowner) /* Find the channel */ test_channel(player, name, c); /* Find the victim */ - if ((victim = lookup_player(newowner)) == NOTHING) { + if (!newowner || (victim = lookup_player(newowner)) == NOTHING) { notify(player, T("CHAT: Invalid owner.")); return; } -- 2.30.2