aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_meta_data.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/container_meta_data.c')
-rw-r--r--src/util/container_meta_data.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/container_meta_data.c b/src/util/container_meta_data.c
index 3f2d7a95c..039ba86ab 100644
--- a/src/util/container_meta_data.c
+++ b/src/util/container_meta_data.c
@@ -585,8 +585,9 @@ GNUNET_CONTAINER_meta_data_get_thumbnail (const struct
585 match = NULL; 585 match = NULL;
586 pos = md->items; 586 pos = md->items;
587 while (NULL != pos) 587 while (NULL != pos)
588 { 588 {
589 if ( (0 == strncasecmp ("image/", pos->mime_type, 589 if ( (NULL != pos->mime_type) &&
590 (0 == strncasecmp ("image/", pos->mime_type,
590 strlen("image/"))) && 591 strlen("image/"))) &&
591 (pos->format == EXTRACTOR_METAFORMAT_BINARY) ) 592 (pos->format == EXTRACTOR_METAFORMAT_BINARY) )
592 { 593 {