summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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,
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);