aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-03-31 01:46:20 +0200
committerDuncaen <mail@duncano.de>2017-03-31 01:46:20 +0200
commit08ea54953ffdac34e60b2d93b0777324413f737d (patch)
treec7136dd0de723aa546780dadeaf6c156b694a11a
parent2287e896312613175f0c7f846d3a56cd9640ebde (diff)
downloadmblaze-08ea54953ffdac34e60b2d93b0777324413f737d.tar.gz
mflag: check if curfile is set before using it
-rw-r--r--mflag.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mflag.c b/mflag.c
index 852caa9..479030c 100644
--- a/mflag.c
+++ b/mflag.c
@@ -92,7 +92,7 @@ doit:
goto skip;
}
- if (strcmp(file+indent, curfile) == 0)
+ if (curfile && strcmp(file+indent, curfile) == 0)
blaze822_seq_setcur(dst+indent);
printf("%s\n", dst);