From ffa0156860c584608db5bde1038e127c6e8fda21 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 30 Aug 2010 21:32:26 +0000 Subject: fixes --- src/util/test_configuration.c | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'src/util/test_configuration.c') diff --git a/src/util/test_configuration.c b/src/util/test_configuration.c index 6747c73cb..fd2b91bfb 100644 --- a/src/util/test_configuration.c +++ b/src/util/test_configuration.c @@ -492,15 +492,22 @@ main (int argc, char *argv[]) GNUNET_CONFIGURATION_destroy (cfg); return 1; } - if ((GNUNET_OK != - GNUNET_CONFIGURATION_get_value_string (cfg, "TESTING", "WEAKRANDOM", - &c)) - || (0 != strcmp (c, "YES"))) + if (GNUNET_OK != + GNUNET_CONFIGURATION_get_value_string (cfg, "TESTING", "WEAKRANDOM", + &c)) + { + GNUNET_break (0); + GNUNET_CONFIGURATION_destroy (cfg); + return 1; + } + if (0 != strcmp (c, "YES")) { GNUNET_break (0); + GNUNET_free (c); GNUNET_CONFIGURATION_destroy (cfg); return 1; } + GNUNET_free (c); GNUNET_CONFIGURATION_destroy (cfg); -- cgit v1.2.3