diff options
Diffstat (limited to 'src/plugins/thumbnailgtk_extractor.c')
-rw-r--r-- | src/plugins/thumbnailgtk_extractor.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/thumbnailgtk_extractor.c b/src/plugins/thumbnailgtk_extractor.c index a68df7b..3676177 100644 --- a/src/plugins/thumbnailgtk_extractor.c +++ b/src/plugins/thumbnailgtk_extractor.c | |||
@@ -74,10 +74,9 @@ EXTRACTOR_thumbnailgtk_extract_method (struct EXTRACTOR_ExtractContext *ec) | |||
74 | void *buf; | 74 | void *buf; |
75 | const char *mime; | 75 | const char *mime; |
76 | 76 | ||
77 | iret = ec->read (ec->cls, | 77 | if (-1 == (iret = ec->read (ec->cls, |
78 | &data, | 78 | &data, |
79 | 16 * 1024); | 79 | 16 * 1024))) |
80 | if (-1 == iret) | ||
81 | return; | 80 | return; |
82 | if (NULL == (mime = magic_buffer (magic, data, iret))) | 81 | if (NULL == (mime = magic_buffer (magic, data, iret))) |
83 | return; | 82 | return; |