mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 07:26:01 +01:00
If g_content_type_guess is certain, stop early.
This commit is contained in:
parent
9c334cc6a6
commit
1dd2430554
1 changed files with 4 additions and 0 deletions
|
@ -181,6 +181,10 @@ guess_type(const char* path)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (uncertain == FALSE) {
|
||||||
|
return content_type;
|
||||||
|
}
|
||||||
|
|
||||||
FILE* f = fopen(path, "r");
|
FILE* f = fopen(path, "r");
|
||||||
if (f == NULL) {
|
if (f == NULL) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue