mirror of
https://github.com/NikitaIvanovV/ctpv.git
synced 2024-11-28 15:33:07 +01:00
Fix
This commit is contained in:
parent
626b220f9e
commit
3cfe9a5f79
@ -94,7 +94,7 @@ static Preview *find_preview(const char *type, const char *subtype, const char *
|
|||||||
for (; *i < previews.len; (*i)++) {
|
for (; *i < previews.len; (*i)++) {
|
||||||
p = previews.list[*i];
|
p = previews.list[*i];
|
||||||
|
|
||||||
if (p->attrs & PREV_ATTR_EXT_SHORT) {
|
if (ext && (p->attrs & PREV_ATTR_EXT_SHORT)) {
|
||||||
if ((rext = strrchr(ext, '.')))
|
if ((rext = strrchr(ext, '.')))
|
||||||
rext += 1;
|
rext += 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user