From 3c012d3a96a87bfdc2c698d323122fb0d002dab8 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 20 Jul 2016 15:37:45 +0200 Subject: mscan: don't crash when cur isn't set --- mscan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mscan.c') diff --git a/mscan.c b/mscan.c index c4392ed..5b25531 100644 --- a/mscan.c +++ b/mscan.c @@ -75,7 +75,7 @@ oneline(char *file) if (!f) f = ""; - if (strcmp(cur, file) == 0) + if (cur && strcmp(cur, file) == 0) flag1 = '>'; else if (!strchr(f, 'S')) flag1 = '.'; -- cgit 1.4.1