From 79c8c4a034c3eb655b4858c299dc12d7f52a807e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 18 Oct 2014 21:36:46 +0200 Subject: [PATCH] fix a crash when testing for the RESHOW ANY command. E2 crashed when no parameter was given. --- src/laws.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/laws.c b/src/laws.c index 602adf816..a19fb4dc8 100755 --- a/src/laws.c +++ b/src/laws.c @@ -2586,7 +2586,7 @@ int reshow_cmd(unit * u, struct order *ord) init_order(ord); s = getstrtoken(); - if (isparam(s, u->faction->locale, P_ANY)) { + if (s && isparam(s, u->faction->locale, P_ANY)) { p = getparam(u->faction->locale); s = NULL; }