diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-06-27 13:51:51 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-06-27 13:51:51 +0000 |
commit | 23a2af1be3868d3da7e0e7a056c32ddb8f40c469 (patch) | |
tree | 0ad156e425b0ae4cf8b852820a7ae8b0c1a9ee62 /src/util | |
parent | 4f3ef5ea95659a69d2106afc7bbd6986fc3d546f (diff) | |
download | gnunet-23a2af1be3868d3da7e0e7a056c32ddb8f40c469.tar.gz gnunet-23a2af1be3868d3da7e0e7a056c32ddb8f40c469.zip |
tolerate NULL mime type
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/container_meta_data.c | 5 |
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 | { |