diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-08-30 21:32:26 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-08-30 21:32:26 +0000 |
commit | ffa0156860c584608db5bde1038e127c6e8fda21 (patch) | |
tree | efa8fe54b81eb17cae35f2567efca4a72579dd49 /src/util/test_configuration.c | |
parent | 3550d44da569c98f23ed052292ff13caf8e43e25 (diff) | |
download | gnunet-ffa0156860c584608db5bde1038e127c6e8fda21.tar.gz gnunet-ffa0156860c584608db5bde1038e127c6e8fda21.zip |
fixes
Diffstat (limited to 'src/util/test_configuration.c')
-rw-r--r-- | src/util/test_configuration.c | 15 |
1 files changed, 11 insertions, 4 deletions
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[]) | |||
492 | GNUNET_CONFIGURATION_destroy (cfg); | 492 | GNUNET_CONFIGURATION_destroy (cfg); |
493 | return 1; | 493 | return 1; |
494 | } | 494 | } |
495 | if ((GNUNET_OK != | 495 | if (GNUNET_OK != |
496 | GNUNET_CONFIGURATION_get_value_string (cfg, "TESTING", "WEAKRANDOM", | 496 | GNUNET_CONFIGURATION_get_value_string (cfg, "TESTING", "WEAKRANDOM", |
497 | &c)) | 497 | &c)) |
498 | || (0 != strcmp (c, "YES"))) | 498 | { |
499 | GNUNET_break (0); | ||
500 | GNUNET_CONFIGURATION_destroy (cfg); | ||
501 | return 1; | ||
502 | } | ||
503 | if (0 != strcmp (c, "YES")) | ||
499 | { | 504 | { |
500 | GNUNET_break (0); | 505 | GNUNET_break (0); |
506 | GNUNET_free (c); | ||
501 | GNUNET_CONFIGURATION_destroy (cfg); | 507 | GNUNET_CONFIGURATION_destroy (cfg); |
502 | return 1; | 508 | return 1; |
503 | } | 509 | } |
510 | |||
504 | GNUNET_free (c); | 511 | GNUNET_free (c); |
505 | GNUNET_CONFIGURATION_destroy (cfg); | 512 | GNUNET_CONFIGURATION_destroy (cfg); |
506 | 513 | ||