]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Initialize lines to empty string in split mode 535/head
authorJames Lu <james@overdrivenetworks.com>
Sat, 14 Jun 2025 02:59:56 +0000 (19:59 -0700)
committerJames Lu <james@overdrivenetworks.com>
Sat, 14 Jun 2025 02:59:56 +0000 (19:59 -0700)
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

ui/split.c

index c88b4feb72e2c2698f37fd3d8c4f6e0a188b1c1f..60520e813054f18bc1e5ef0cf0881d81d5018b6f 100644 (file)
@@ -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);
     }
 }