-nullcheck
authorChristian Grothoff <christian@grothoff.org>
Sat, 24 Mar 2012 18:45:44 +0000 (18:45 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sat, 24 Mar 2012 18:45:44 +0000 (18:45 +0000)
src/fs/gnunet-publish.c

index 84d58138490f664de3069d83d85624f4fb314409..a1b26dbd5845da11eae06fee745c23cdd009a762 100644 (file)
@@ -291,7 +291,8 @@ publish_inspector (void *cls, struct GNUNET_FS_FileInformation *fi,
   }
   if (!do_disable_creation_time)
     GNUNET_CONTAINER_meta_data_add_publication_date (m);
-  if (disable_extractor)
+  if ( (disable_extractor) &&
+       (NULL != *uri) )
   {
     GNUNET_FS_uri_destroy (*uri);
     *uri = NULL;