fix
authorChristian Grothoff <christian@grothoff.org>
Fri, 2 Apr 2010 11:51:27 +0000 (11:51 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 2 Apr 2010 11:51:27 +0000 (11:51 +0000)
src/fs/fs_directory.c

index 82d0e8690f1788b8982a0f8d9235f25a9c5052fc..6f99395099c4133e69b96c01ad3df985fc355bc8 100644 (file)
@@ -56,6 +56,8 @@ GNUNET_FS_meta_data_test_for_directory (const struct GNUNET_CONTAINER_MetaData *
   char *mime;
   int ret;
   
+  if (NULL == md)
+    return GNUNET_SYSERR;
   mime = GNUNET_CONTAINER_meta_data_get_by_type (md, EXTRACTOR_METATYPE_MIMETYPE);
   if (mime == NULL)
     return GNUNET_SYSERR;