From: Ari Johnson Date: Fri, 17 Dec 2010 19:43:34 +0000 (+0000) Subject: Don't lookup_player() a NULL string X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=6f4efa010b94984347112fa65e89469dd7bfc1bf;p=cobramush.git Don't lookup_player() a NULL string --- 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; }