summaryrefslogtreecommitdiff
path: root/lib/command_match.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/command_match.c')
-rw-r--r--lib/command_match.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/command_match.c b/lib/command_match.c
index 011ac698cb..9b9f8a0ec5 100644
--- a/lib/command_match.c
+++ b/lib/command_match.c
@@ -158,6 +158,8 @@ match_command (struct graph_node *start,
static struct list *
match_command_r (struct graph_node *start, vector vline, unsigned int n)
{
+ assert (n < vector_active (vline));
+
// get the minimum match level that can count as a full match
enum match_type minmatch = min_match_level (start->type);