mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-21 21:16:48 +00: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 New Issue
Block a user