aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/test_namestore_api_zone_iteration_stop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-11-05 19:58:51 +0000
committerChristian Grothoff <christian@grothoff.org>2013-11-05 19:58:51 +0000
commit56f3001a4d745dfa5ad196c1b18c672145c89f4c (patch)
tree90edfb1a42af668477969ba2e33f63683bf76ecc /src/namestore/test_namestore_api_zone_iteration_stop.c
parentfb446b66a47ace773b9768b1d0c1da9c4c2f43b1 (diff)
downloadgnunet-56f3001a4d745dfa5ad196c1b18c672145c89f4c.tar.gz
gnunet-56f3001a4d745dfa5ad196c1b18c672145c89f4c.zip
-initialize flags to unproblematic value (hence usually zero)
Diffstat (limited to 'src/namestore/test_namestore_api_zone_iteration_stop.c')
-rw-r--r--src/namestore/test_namestore_api_zone_iteration_stop.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/namestore/test_namestore_api_zone_iteration_stop.c b/src/namestore/test_namestore_api_zone_iteration_stop.c
index f2a3f7940..728a118eb 100644
--- a/src/namestore/test_namestore_api_zone_iteration_stop.c
+++ b/src/namestore/test_namestore_api_zone_iteration_stop.c
@@ -110,11 +110,11 @@ endbadly (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
110static void 110static void
111end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 111end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
112{ 112{
113 if (NULL != zi) 113 if (NULL != zi)
114 { 114 {
115 GNUNET_NAMESTORE_zone_iteration_stop (zi); 115 GNUNET_NAMESTORE_zone_iteration_stop (zi);
116 zi = NULL; 116 zi = NULL;
117 } 117 }
118 118
119 if (endbadly_task != GNUNET_SCHEDULER_NO_TASK) 119 if (endbadly_task != GNUNET_SCHEDULER_NO_TASK)
120 { 120 {
@@ -156,10 +156,10 @@ end (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
156 156
157static void 157static void
158zone_proc (void *cls, 158zone_proc (void *cls,
159 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone, 159 const struct GNUNET_CRYPTO_EcdsaPrivateKey *zone,
160 const char *label, 160 const char *label,
161 unsigned int rd_count, 161 unsigned int rd_count,
162 const struct GNUNET_GNSRECORD_Data *rd) 162 const struct GNUNET_GNSRECORD_Data *rd)
163{ 163{
164 int failed = GNUNET_NO; 164 int failed = GNUNET_NO;
165 if ((zone == NULL) && (label == NULL)) 165 if ((zone == NULL) && (label == NULL))
@@ -344,6 +344,7 @@ create_record (unsigned int count)
344 rd[c].record_type = 1111; 344 rd[c].record_type = 1111;
345 rd[c].data_size = 50; 345 rd[c].data_size = 50;
346 rd[c].data = GNUNET_malloc(50); 346 rd[c].data = GNUNET_malloc(50);
347 rd[c].flags = 0;
347 memset ((char *) rd[c].data, 'a', 50); 348 memset ((char *) rd[c].data, 'a', 50);
348 } 349 }
349 return rd; 350 return rd;