From: Christian Grothoff Date: Sat, 9 Nov 2013 20:47:53 +0000 (+0000) Subject: -do not call with NULL X-Git-Tag: initial-import-from-subversion-38251~6153 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7a2ed01a317327f089d86314eb5aa311c87abf7a;p=oweals%2Fgnunet.git -do not call with NULL --- diff --git a/src/fs/fs_test_lib.c b/src/fs/fs_test_lib.c index 1db777a7a..085ea3764 100644 --- a/src/fs/fs_test_lib.c +++ b/src/fs/fs_test_lib.c @@ -196,7 +196,8 @@ report_uri (void *cls, ? po->publish_tmp_file : NULL); GNUNET_FS_uri_destroy (po->publish_uri); - if (GNUNET_YES != po->do_index) + if ( (GNUNET_YES != po->do_index) && + (NULL != po->publish_tmp_file) ) (void) GNUNET_DISK_directory_remove (po->publish_tmp_file); GNUNET_free_non_null (po->publish_tmp_file); GNUNET_free (po);