]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Option -y can not work properly 251/head
authorweiyixuan <weiyixuan@netpas.co>
Tue, 10 Apr 2018 07:14:22 +0000 (15:14 +0800)
committerweiyixuan <weiyixuan@netpas.co>
Tue, 10 Apr 2018 07:14:22 +0000 (15:14 +0800)
ui/asn.c

index a1efa98cece253bc5c198d9c05261398f852191d..1fe29ba8c8c9f3a54f50165f9b55451dcaf1c3b5 100644 (file)
--- a/ui/asn.c
+++ b/ui/asn.c
@@ -193,8 +193,6 @@ static char *split_txtrec(
     if (i > ctl->ipinfo_max)
         ctl->ipinfo_max = i;
     if (ctl->ipinfo_no >= i) {
-        if (ctl->ipinfo_no >= ctl->ipinfo_max)
-            ctl->ipinfo_no = 0;
         return (*items)[0];
     } else
         return (*items)[ctl->ipinfo_no];