ripd: argv not argc

Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
This commit is contained in:
Quentin Young 2016-09-27 17:51:06 +00:00
parent 8b57682576
commit 4f026db15a

View file

@ -754,7 +754,7 @@ DEFUN (no_match_metric,
"Match metric of route\n"
"Metric value\n")
{
char *mval = (argc == 4) ? argc[3]->arg : NULL;
char *mval = (argc == 4) ? argv[3]->arg : NULL;
return rip_route_match_delete (vty, vty->index, "metric", mval);
}