diff options
author | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 15:37:45 +0200 |
---|---|---|
committer | Christian Neukirchen <chneukirchen@gmail.com> | 2016-07-20 15:37:45 +0200 |
commit | 3c012d3a96a87bfdc2c698d323122fb0d002dab8 (patch) | |
tree | 33f28d4c5e6035061388876512332a207a6e275f /mscan.c | |
parent | 7e026ce08d03f2b392678159a89cac8461c9af50 (diff) | |
download | mblaze-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.c | 2 |
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 = '.'; |