mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 21:47:15 +02:00
tools: Catch more argv_find() when not checked properly
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
This commit is contained in:
parent
e34627f9c7
commit
ededfdb4d1
|
@ -4,8 +4,10 @@ identifier argv;
|
|||
identifier argc;
|
||||
expression e1;
|
||||
expression e2;
|
||||
identifier I;
|
||||
@@
|
||||
|
||||
(
|
||||
- argv_find(argv, argc, e1, &idx);
|
||||
if (
|
||||
- idx
|
||||
|
@ -14,3 +16,8 @@ expression e2;
|
|||
{
|
||||
e2;
|
||||
}
|
||||
|
|
||||
- argv_find(argv, argc, e1, &idx);
|
||||
... when != I = idx;
|
||||
when strict
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue