aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-06-27 13:51:51 +0000
committerChristian Grothoff <christian@grothoff.org>2010-06-27 13:51:51 +0000
commit23a2af1be3868d3da7e0e7a056c32ddb8f40c469 (patch)
tree0ad156e425b0ae4cf8b852820a7ae8b0c1a9ee62
parent4f3ef5ea95659a69d2106afc7bbd6986fc3d546f (diff)
downloadgnunet-23a2af1be3868d3da7e0e7a056c32ddb8f40c469.tar.gz
gnunet-23a2af1be3868d3da7e0e7a056c32ddb8f40c469.zip
tolerate NULL mime type
-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 {