Fix navigate/march crash on funny path arguments
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 16 Jan 2010 16:15:22 +0000 (17:15 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 19 Jan 2010 07:40:42 +0000 (08:40 +0100)
commit3650587dab63d8622cb36f9f9a73805d0e65fbfc
tree9e14e9b3d11781ebfc2899a66bc6e823deab8b0a
parent6c8ba9c3fd4432318984a9e2f873b66dd8dc5166
Fix navigate/march crash on funny path arguments

For an argument consisting of a valid path plus whitespace,
do_unit_move() eventually passed the whitespace suffix to parse(),
then dereferenced player->argp[0].  But that was null.

Broken in commit 0c12d837, v4.3.7.  Trivial for players to trigger.
src/lib/commands/navi.c