From: weiyixuan Date: Tue, 10 Apr 2018 07:14:22 +0000 (+0800) Subject: Option -y can not work properly X-Git-Tag: v0.93~23^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F251%2Fhead;p=thirdparty%2Fmtr.git Option -y can not work properly --- diff --git a/ui/asn.c b/ui/asn.c index a1efa98..1fe29ba 100644 --- 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];