From 1ee63030e5a004da8a6e03e442896d8854bbeb8e 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 (cherry picked from commit 6f4efa010b94984347112fa65e89469dd7bfc1bf) --- src/extchat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extchat.c b/src/extchat.c index 31f7eeb..7fba5d2 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