From 31f0a0fb1454b8792b9c0807ef6f7ad256df9476 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 14 Nov 2018 23:16:47 +0100 Subject: libsimple-arg: test that ARGHERE() == &LFLAG()[1] for the first flag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libsimple-arg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libsimple-arg.c b/libsimple-arg.c index fcebb42..a802c55 100644 --- a/libsimple-arg.c +++ b/libsimple-arg.c @@ -332,6 +332,7 @@ parser6(int argc, char *argv[]) PARSER_BEGIN; ARGBEGIN2(1, 1) { default: + assert(ARGHERE() == &LFLAG()[1]); argv[0] = LFLAG(); goto stop; } ARGALT('+') { -- cgit v1.2.3-70-g09d2