projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1a2566
)
reduce scope
author
Christian Grothoff
<christian@grothoff.org>
Sat, 5 Oct 2019 13:00:11 +0000
(15:00 +0200)
committer
Christian Grothoff
<christian@grothoff.org>
Sat, 5 Oct 2019 13:00:11 +0000
(15:00 +0200)
src/util/configuration.c
patch
|
blob
|
history
diff --git
a/src/util/configuration.c
b/src/util/configuration.c
index 14fff98441817bf77d34d0db1bf81fa30f856c2a..6d72d4fe09344d6a0cc0afa4fcbb3cdd7803ce83 100644
(file)
--- 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);