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