From: James Lu Date: Sat, 14 Jun 2025 02:59:56 +0000 (-0700) Subject: Initialize lines to empty string in split mode X-Git-Tag: v0.96~2^2~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F535%2Fhead;p=thirdparty%2Fmtr.git Initialize lines to empty string in split mode Split mode only prints lines that have changed, so initializing them to "???" means that unknown / hidden hops are never printed. Fixes https://github.com/traviscross/mtr/issues/108 --- diff --git a/ui/split.c b/ui/split.c index c88b4fe..60520e8 100644 --- a/ui/split.c +++ b/ui/split.c @@ -136,7 +136,7 @@ void split_open( #endif LineCount = -1; for (i = 0; i < MAX_LINE_COUNT; i++) { - xstrncpy(Lines[i], "???", MAX_LINE_SIZE); + xstrncpy(Lines[i], "", MAX_LINE_SIZE); } }