]> git.pond.sub.org Git - empserver/commit
nsc: Reject array selectors in conditions
authorMarkus Armbruster <armbru@pond.sub.org>
Sun, 2 Feb 2014 09:29:18 +0000 (10:29 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Sun, 1 Feb 2015 15:52:59 +0000 (16:52 +0100)
commit355344a82bffb9dbab6b7742942cefb8e9e90a1d
tree93231f71ed08f1e12fb7158524fe18c00094c902
parentb6775d1c9b4e6db7e2ddff6fda1809bf978e7d5e
nsc: Reject array selectors in conditions

Array selectors were introduced for xdump (commit 612f2da, v4.2.18).
Since there is no syntax for subscripting arrays in conditions and
survey, we silently assume index zero.  Unclean.  Reject the selector
instead.

Affects ship selectors cargostart, cargoend, amtstart, amtend (since
commit 32011f1, v4.2.19), nat selectors relations (commit 0a44c48,
v4.3.0), contacts (commit c345ab8, v4.3.0), rejects (commit 6844c94,
v4.3.4).  The other array selectors aren't visible in conditions.  No
array selectors are visible in survey.

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/lib/subs/nstr.c