This commit is contained in:
Nikita Ivanov 2022-07-14 22:15:31 +05:00
parent 626b220f9e
commit 3cfe9a5f79
No known key found for this signature in database
GPG Key ID: 6E656AC5B97B5133

View File

@ -94,7 +94,7 @@ static Preview *find_preview(const char *type, const char *subtype, const char *
for (; *i < previews.len; (*i)++) {
p = previews.list[*i];
if (p->attrs & PREV_ATTR_EXT_SHORT) {
if (ext && (p->attrs & PREV_ATTR_EXT_SHORT)) {
if ((rext = strrchr(ext, '.')))
rext += 1;
} else {