Returns now GNUNET_SYSERR
[oweals/gnunet.git] / src / util / test_configuration.c
index 992c32e6c479342bd6a532d780030fea603f4051..429e03178b2ac45492f0314b5bb7d2656c7756a8 100644 (file)
@@ -4,7 +4,7 @@
 
      GNUnet is free software; you can redistribute it and/or modify
      it under the terms of the GNU General Public License as published
-     by the Free Software Foundation; either version 2, or (at your
+     by the Free Software Foundation; either version 3, or (at your
      option) any later version.
 
      GNUnet is distributed in the hope that it will be useful, but
@@ -144,7 +144,7 @@ diffsCallBack (void *cls,
          cbData->section = section;
          printf ("\nSection: %s\n", section);
        }
-      printf ("%s = %s\n", option, value);
+      printf ("%s = %s\n", option, abs_value);
 #endif
     default:
       break;
@@ -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);