summary refs log tree commit diff
path: root/contrib
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-23 01:43:47 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-23 01:43:47 +0200
commit95bd63e7b0fd13f20642795dd4f15ff3556ec8f3 (patch)
treed013a04f70577a16f2ceb7da006f24ecedd1b606 /contrib
parent36b1dbd0d17656c546583cc0da1354bd04a7d66b (diff)
downloadmblaze-95bd63e7b0fd13f20642795dd4f15ff3556ec8f3.tar.gz
mblaze-95bd63e7b0fd13f20642795dd4f15ff3556ec8f3.tar.xz
mblaze-95bd63e7b0fd13f20642795dd4f15ff3556ec8f3.zip
mthr: don't try to print a parent for toplevel messages
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/mthr5
1 files changed, 3 insertions, 2 deletions
diff --git a/contrib/mthr b/contrib/mthr
index 8dd01d6..2c4038c 100755
--- a/contrib/mthr
+++ b/contrib/mthr
@@ -33,8 +33,9 @@ mode==2 && ind <= dep { sel = 0 }
 }
 mode==2 && sel { print }
 mode==3 && sel {
-	print parents[ind-1]
-                 sel = 0
+	if (ind>0)
+		print parents[ind-1]
+	sel = 0
 }
 mode==3 {parents[ind] = $0 }
 ' - $(mseq $@)