reduce scope
authorChristian Grothoff <christian@grothoff.org>
Sat, 5 Oct 2019 13:00:11 +0000 (15:00 +0200)
committerChristian Grothoff <christian@grothoff.org>
Sat, 5 Oct 2019 13:00:11 +0000 (15:00 +0200)
src/util/configuration.c

index 14fff98441817bf77d34d0db1bf81fa30f856c2a..6d72d4fe09344d6a0cc0afa4fcbb3cdd7803ce83 100644 (file)
@@ -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);