From 4427e9b3eeb6aaff3882dd1e96e14af62fa37ad4 Mon Sep 17 00:00:00 2001 From: Quentin Young Date: Tue, 9 Aug 2016 17:37:01 +0000 Subject: lib: Fix various minor bugs - cmd_make_strvec returns null pointer if str begins with a '#' - disallow options nested options - NULL out state variable in parser - flip backwards comparison - fix memory leak in lexer Signed-off-by: Quentin Young --- lib/command_match.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/command_match.c') 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); -- cgit v1.2.3