summaryrefslogtreecommitdiff
path: root/src
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
parentb1a2566fc931ee625b74fe9ee67dd6eabb66f891 (diff)
reduce scope
Diffstat (limited to 'src')
-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,
char *cbuf;
char *val;
char *pos;
- int len;
size_t m_size;
size_t c_size;
@@ -464,6 +463,8 @@ GNUNET_CONFIGURATION_serialize(const struct GNUNET_CONFIGURATION_Handle *cfg,
*size = c_size;
while (NULL != sec)
{
+ int len;
+
len = GNUNET_asprintf(&cbuf, "[%s]\n", sec->name);
GNUNET_assert(0 < len);
GNUNET_memcpy(mem + c_size, cbuf, len);