diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-01-24 17:17:30 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-01-24 17:17:30 +0100 |
commit | 112f7cfad738bcbdd880e9f1131a25135edf1381 (patch) | |
tree | dda1dd69beb6731d4587895f0db153fca5e4a058 /src/merchant-tools | |
parent | b3e1b0985e69b1b455d895b204bcaedefe6691ca (diff) |
towards fixing backend DB versioning, also fixing TALER_PQ_error_code() semantic change
Diffstat (limited to 'src/merchant-tools')
-rw-r--r-- | src/merchant-tools/taler-merchant-dbinit.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/merchant-tools/taler-merchant-dbinit.c b/src/merchant-tools/taler-merchant-dbinit.c index b5e85ee6..d5f2da6b 100644 --- a/src/merchant-tools/taler-merchant-dbinit.c +++ b/src/merchant-tools/taler-merchant-dbinit.c @@ -1,6 +1,6 @@ /* This file is part of TALER - Copyright (C) 2014, 2015 GNUnet e.V. + Copyright (C) 2014, 2015 Taler Systems SA TALER 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 @@ -41,22 +41,25 @@ static int reset_db; * @param cls closure * @param args remaining command-line arguments * @param cfgfile name of the configuration file used (for saving, can be NULL!) - * @param cfg configuration + * @param config configuration */ static void run (void *cls, char *const *args, const char *cfgfile, - const struct GNUNET_CONFIGURATION_Handle *cfg) + const struct GNUNET_CONFIGURATION_Handle *config) { struct TALER_MERCHANTDB_Plugin *plugin; + struct GNUNET_CONFIGURATION_Handle *cfg; + cfg = GNUNET_CONFIGURATION_dup (config); if (NULL == (plugin = TALER_MERCHANTDB_plugin_load (cfg))) { fprintf (stderr, "Failed to initialize database plugin.\n"); global_ret = 1; + GNUNET_CONFIGURATION_destroy (cfg); return; } if (reset_db) @@ -66,6 +69,7 @@ run (void *cls, plugin = TALER_MERCHANTDB_plugin_load (cfg); } TALER_MERCHANTDB_plugin_unload (plugin); + GNUNET_CONFIGURATION_destroy (cfg); } |