aboutsummaryrefslogtreecommitdiff
path: root/src/namestore
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-12-19 14:05:58 +0000
committerChristian Grothoff <christian@grothoff.org>2014-12-19 14:05:58 +0000
commit6cbb0a3cb5dd84c97df4062e5767fffacb051ce0 (patch)
tree4b9e19f1e9f652a8bd839babb9727d5e7fb64aad /src/namestore
parent9b3124e045a61865805b7a97f87700609cb926cb (diff)
downloadgnunet-6cbb0a3cb5dd84c97df4062e5767fffacb051ce0.tar.gz
gnunet-6cbb0a3cb5dd84c97df4062e5767fffacb051ce0.zip
-check NULL, check RV
Diffstat (limited to 'src/namestore')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration.c b/src/namestore/test_namestore_api_zone_iteration.c
index 20e927e51..933845206 100644
--- a/src/namestore/test_namestore_api_zone_iteration.c
+++ b/src/namestore/test_namestore_api_zone_iteration.c
@@ -181,6 +181,7 @@ zone_proc (void *cls,
181 GNUNET_SCHEDULER_add_now (&end, NULL); 181 GNUNET_SCHEDULER_add_now (&end, NULL);
182 return; 182 return;
183 } 183 }
184 GNUNET_assert (NULL != zone);
184 if (0 == memcmp (zone, privkey, sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey))) 185 if (0 == memcmp (zone, privkey, sizeof (struct GNUNET_CRYPTO_EcdsaPrivateKey)))
185 { 186 {
186 if (0 == strcmp (label, s_name_1)) 187 if (0 == strcmp (label, s_name_1))
@@ -424,7 +425,10 @@ run (void *cls,
424 struct GNUNET_TESTING_Peer *peer) 425 struct GNUNET_TESTING_Peer *peer)
425{ 426{
426 directory = NULL; 427 directory = NULL;
427 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS", "GNUNET_TEST_HOME", &directory); 428 GNUNET_assert (GNUNET_OK ==
429 GNUNET_CONFIGURATION_get_value_string(cfg, "PATHS",
430 "GNUNET_TEST_HOME",
431 &directory));
428 GNUNET_DISK_directory_remove (directory); 432 GNUNET_DISK_directory_remove (directory);
429 433
430 endbadly_task = GNUNET_SCHEDULER_add_delayed(TIMEOUT, &endbadly, NULL); 434 endbadly_task = GNUNET_SCHEDULER_add_delayed(TIMEOUT, &endbadly, NULL);