tools: Catch more argv_find() when not checked properly

Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
Donatas Abraitis 2022-05-12 10:09:42 +03:00
parent e34627f9c7
commit ededfdb4d1

View file

@ -4,8 +4,10 @@ identifier argv;
identifier argc; identifier argc;
expression e1; expression e1;
expression e2; expression e2;
identifier I;
@@ @@
(
- argv_find(argv, argc, e1, &idx); - argv_find(argv, argc, e1, &idx);
if ( if (
- idx - idx
@ -14,3 +16,8 @@ expression e2;
{ {
e2; e2;
} }
|
- argv_find(argv, argc, e1, &idx);
... when != I = idx;
when strict
)