forked from github/server
fix null-pointer crash (EMAIL order without arguments)
This commit is contained in:
parent
aa01d9f21a
commit
20c0dfbb47
|
@ -2141,7 +2141,7 @@ int email_cmd(unit * u, struct order *ord)
|
|||
init_order(ord);
|
||||
s = getstrtoken();
|
||||
|
||||
if (!s[0]) {
|
||||
if (!s || !s[0]) {
|
||||
cmistake(u, ord, 85, MSG_EVENT);
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Reference in New Issue