aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-05 15:00:11 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-05 15:00:11 +0200
commit968e36dc35477016d182add48ce37002dc187ff2 (patch)
tree81416443774e68207fd69b966af93e429b8ff24b /src/util
parentb1a2566fc931ee625b74fe9ee67dd6eabb66f891 (diff)
downloadgnunet-968e36dc35477016d182add48ce37002dc187ff2.tar.gz
gnunet-968e36dc35477016d182add48ce37002dc187ff2.zip
reduce scope
Diffstat (limited to 'src/util')
-rw-r--r--src/util/configuration.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/configuration.c b/src/util/configuration.c
index 14fff9844..6d72d4fe0 100644
--- a/src/util/configuration.c
+++ b/src/util/configuration.c
@@ -427,7 +427,6 @@ GNUNET_CONFIGURATION_serialize(const struct GNUNET_CONFIGURATION_Handle *cfg,
427 char *cbuf; 427 char *cbuf;
428 char *val; 428 char *val;
429 char *pos; 429 char *pos;
430 int len;
431 size_t m_size; 430 size_t m_size;
432 size_t c_size; 431 size_t c_size;
433 432
@@ -464,6 +463,8 @@ GNUNET_CONFIGURATION_serialize(const struct GNUNET_CONFIGURATION_Handle *cfg,
464 *size = c_size; 463 *size = c_size;
465 while (NULL != sec) 464 while (NULL != sec)
466 { 465 {
466 int len;
467
467 len = GNUNET_asprintf(&cbuf, "[%s]\n", sec->name); 468 len = GNUNET_asprintf(&cbuf, "[%s]\n", sec->name);
468 GNUNET_assert(0 < len); 469 GNUNET_assert(0 < len);
469 GNUNET_memcpy(mem + c_size, cbuf, len); 470 GNUNET_memcpy(mem + c_size, cbuf, len);