[gnome-commander] Skip files without mime-type for reading poppler tags, bgo#683087
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Skip files without mime-type for reading poppler tags, bgo#683087
- Date: Sun, 17 Jul 2016 18:56:37 +0000 (UTC)
commit eb61920d5900a8bbc13f8cb65bf7f35de3ba8f9a
Author: Uwe Scholz <uwescholz src gnome org>
Date: Sun Jul 17 20:52:29 2016 +0200
Skip files without mime-type for reading poppler tags, bgo#683087
This is important for links like /proc/1/cwd.
src/tags/gnome-cmd-tags-poppler.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tags/gnome-cmd-tags-poppler.cc b/src/tags/gnome-cmd-tags-poppler.cc
index 64d3306..8205e61 100644
--- a/src/tags/gnome-cmd-tags-poppler.cc
+++ b/src/tags/gnome-cmd-tags-poppler.cc
@@ -203,6 +203,7 @@ void gcmd_tags_poppler_load_metadata(GnomeCmdFile *f)
if (!f->is_local()) return;
// skip non pdf files, as pdf metatags extraction is very expensive...
+ if (f->info->mime_type == NULL) return;
if (!strstr (f->info->mime_type, "pdf")) return;
gchar *fname = f->get_real_path();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]