summaryrefslogtreecommitdiff
path: root/backend/epub
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2024-01-31 11:54:34 +0100
committerraveit65 <[email protected]>2024-01-31 11:54:34 +0100
commit6d37d813914c5a466b0859348cce4d64781b2aa1 (patch)
tree144dc82924071aa2b4275d72f0a1a199519cf47a /backend/epub
parent095b361404c5f174fa1cf737753a450542d9f1c3 (diff)
downloadatril-6d37d813914c5a466b0859348cce4d64781b2aa1.tar.bz2
atril-6d37d813914c5a466b0859348cce4d64781b2aa1.tar.xz
epub: fix previous commit
Diffstat (limited to 'backend/epub')
-rw-r--r--backend/epub/epub-document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c
index 1a9cc669..b63f91cb 100644
--- a/backend/epub/epub-document.c
+++ b/backend/epub/epub-document.c
@@ -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;
}