summary refs log tree commit diff
path: root/mscan.c
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2016-07-20 15:37:45 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2016-07-20 15:37:45 +0200
commit3c012d3a96a87bfdc2c698d323122fb0d002dab8 (patch)
tree33f28d4c5e6035061388876512332a207a6e275f /mscan.c
parent7e026ce08d03f2b392678159a89cac8461c9af50 (diff)
downloadmblaze-3c012d3a96a87bfdc2c698d323122fb0d002dab8.tar.gz
mblaze-3c012d3a96a87bfdc2c698d323122fb0d002dab8.tar.xz
mblaze-3c012d3a96a87bfdc2c698d323122fb0d002dab8.zip
mscan: don't crash when cur isn't set
Diffstat (limited to 'mscan.c')
-rw-r--r--mscan.c2
1 files changed, 1 insertions, 1 deletions
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 = '.';