mirror of
https://github.com/FRRouting/frr.git
synced 2025-05-01 05:57: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;
|
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
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue