[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r11979 - gnunet/src/util
From: |
gnunet |
Subject: |
[GNUnet-SVN] r11979 - gnunet/src/util |
Date: |
Sun, 27 Jun 2010 15:51:51 +0200 |
Author: grothoff
Date: 2010-06-27 15:51:51 +0200 (Sun, 27 Jun 2010)
New Revision: 11979
Modified:
gnunet/src/util/container_meta_data.c
Log:
tolerate NULL mime type
Modified: gnunet/src/util/container_meta_data.c
===================================================================
--- gnunet/src/util/container_meta_data.c 2010-06-27 13:46:09 UTC (rev
11978)
+++ gnunet/src/util/container_meta_data.c 2010-06-27 13:51:51 UTC (rev
11979)
@@ -585,8 +585,9 @@
match = NULL;
pos = md->items;
while (NULL != pos)
- {
- if ( (0 == strncasecmp ("image/", pos->mime_type,
+ {
+ if ( (NULL != pos->mime_type) &&
+ (0 == strncasecmp ("image/", pos->mime_type,
strlen("image/"))) &&
(pos->format == EXTRACTOR_METAFORMAT_BINARY) )
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r11979 - gnunet/src/util,
gnunet <=