gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] 01/02: initialize 'currency' variable


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] 01/02: initialize 'currency' variable
Date: Fri, 17 Mar 2017 14:08:03 +0100

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

commit 2d7d658e8b488bb155d977507bee31a1f95b912d
Author: Christian Grothoff <address@hidden>
AuthorDate: Fri Mar 17 13:56:47 2017 +0100

    initialize 'currency' variable
---
 src/auditor/taler-auditor.c | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/src/auditor/taler-auditor.c b/src/auditor/taler-auditor.c
index b9edcf6..f795897 100644
--- a/src/auditor/taler-auditor.c
+++ b/src/auditor/taler-auditor.c
@@ -25,7 +25,6 @@
  *   given in the aggregation_tracking table. This needs to be checked 
separately!
  *
  * TODO:
- * - initialize 'currency' (URGENT!)
  * - modify auditordb to allow multiple last serial IDs per table in progress 
tracking
  * - implement coin/denomination audit
  * - implement merchant deposit audit
@@ -1936,6 +1935,18 @@ run (void *cls,
      const char *cfgfile,
      const struct GNUNET_CONFIGURATION_Handle *cfg)
 {
+  if (GNUNET_OK !=
+      GNUNET_CONFIGURATION_get_value_string (cfg,
+                                             "taler",
+                                             "CURRENCY",
+                                             &currency))
+  {
+    GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
+                               "taler",
+                               "CURRENCY");
+    global_ret = 1;
+    return;
+  }
   if (NULL ==
       (edb = TALER_EXCHANGEDB_plugin_load (cfg)))
   {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]