mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:46: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;
|
||||
}
|
||||
|
||||
if (uncertain == FALSE) {
|
||||
return content_type;
|
||||
}
|
||||
|
||||
FILE* f = fopen(path, "r");
|
||||
if (f == NULL) {
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue