]> git.puffer.fish Git - matthieu/frr.git/commitdiff
ripd: argv not argc
authorQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 27 Sep 2016 17:51:06 +0000 (17:51 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Tue, 27 Sep 2016 17:51:06 +0000 (17:51 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
ripd/rip_routemap.c

index ecff6e766d29b2ff7019bed79134a9c760514dc3..e1017cfb2741b2ed91785f51a2ac549b7b5b8bff 100644 (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);
 }