aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-config.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-config.c')
-rw-r--r--src/util/gnunet-config.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/util/gnunet-config.c b/src/util/gnunet-config.c
index 4f16332db..807df0d74 100644
--- a/src/util/gnunet-config.c
+++ b/src/util/gnunet-config.c
@@ -193,7 +193,8 @@ run (void *cls,
193 if ( (! rewrite) && 193 if ( (! rewrite) &&
194 (NULL == section) ) 194 (NULL == section) )
195 { 195 {
196 char *ser; 196 char *serialization;
197
197 if (! diagnostics) 198 if (! diagnostics)
198 { 199 {
199 fprintf (stderr, 200 fprintf (stderr,
@@ -204,9 +205,11 @@ run (void *cls,
204 global_ret = 1; 205 global_ret = 1;
205 return; 206 return;
206 } 207 }
207 ser = GNUNET_CONFIGURATION_serialize_diagnostics (cfg); 208 serialization = GNUNET_CONFIGURATION_serialize_diagnostics (cfg);
208 printf ("%s", ser); 209 fprintf (stdout,
209 GNUNET_free (ser); 210 "%s",
211 serialization);
212 GNUNET_free (serialization);
210 } 213 }
211 else if ( (NULL != section) && 214 else if ( (NULL != section) &&
212 (NULL == value) ) 215 (NULL == value) )