Skip to content

Commit

Permalink
epub: fix previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raveit65 committed Jan 31, 2024
1 parent 095b361 commit 6d37d81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/epub/epub-document.c
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ check_mime_type(const gchar* uri,GError** error)
mimeFromFile = ev_file_get_mime_type (uri, TRUE, &err);
if (mimeFromFile)
{
for (i = 0; i < g_strv_length ((gchar**) mimetypes); i++) {
for (i = 0; i < G_N_ELEMENTS (mimetypes); i++) {
if (g_strcmp0(mimeFromFile, mimetypes[i]) == 0)
return TRUE;
}
Expand Down

0 comments on commit 6d37d81

Please sign in to comment.