From 968e36dc35477016d182add48ce37002dc187ff2 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 5 Oct 2019 15:00:11 +0200 Subject: reduce scope --- src/util/configuration.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3