From 93ff33b4b44f297924ecb9f2f1de84646db0cd1b Mon Sep 17 00:00:00 2001 From: Ali Gholami Rudi Date: Sat, 27 Jul 2013 18:31:20 +0430 Subject: [PATCH] tr: ignore .lf with no arguments --- tr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tr.c b/tr.c index 7e89229..374fb16 100644 --- a/tr.c +++ b/tr.c @@ -504,7 +504,8 @@ static void tr_mc(char **args) static void tr_lf(char **args) { - in_lf(args[2], eval(args[1], 0)); + if (args[1]) + in_lf(args[2], eval(args[1], 0)); } static char *arg_regname(char *s, int len) -- 2.11.4.GIT