shada: fix pvs/v1004

This commit is contained in:
Jan Edmund Lazo
2020-08-09 23:37:11 -04:00
parent aab71dbd03
commit 9f591e6f23

View File

@@ -4148,7 +4148,7 @@ static inline size_t shada_init_jumps(
}
const char *const fname = (char *) (fm.fmark.fnum == 0
? (fm.fname == NULL ? NULL : fm.fname)
: buf->b_ffname);
: buf ? buf->b_ffname : NULL);
if (fname == NULL) {
continue;
}