aboutsummaryrefslogtreecommitdiff
path: root/src/merchant-tools/taler-merchant-dbinit.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-10-11 23:35:49 +0200
committerChristian Grothoff <christian@grothoff.org>2019-10-11 23:35:49 +0200
commit37bd6899d24b234534926af5e40b112eb4565baa (patch)
treee7f41adeaf923513b2eba153052b8b147491dc3f /src/merchant-tools/taler-merchant-dbinit.c
parent6eb1f758ead6eca02803cadf3017101ebdc338e0 (diff)
fix #5733 by migrating to new GNUnet PQ API
Diffstat (limited to 'src/merchant-tools/taler-merchant-dbinit.c')
-rw-r--r--src/merchant-tools/taler-merchant-dbinit.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/merchant-tools/taler-merchant-dbinit.c b/src/merchant-tools/taler-merchant-dbinit.c
index 2da6cd50..b5e85ee6 100644
--- a/src/merchant-tools/taler-merchant-dbinit.c
+++ b/src/merchant-tools/taler-merchant-dbinit.c
@@ -60,17 +60,11 @@ run (void *cls,
return;
}
if (reset_db)
- (void) plugin->drop_tables (plugin->cls);
- if (GNUNET_OK !=
- plugin->initialize (plugin->cls))
{
- fprintf (stderr,
- "Failed to initialize database.\n");
+ (void) plugin->drop_tables (plugin->cls);
TALER_MERCHANTDB_plugin_unload (plugin);
- global_ret = 1;
- return;
+ plugin = TALER_MERCHANTDB_plugin_load (cfg);
}
-
TALER_MERCHANTDB_plugin_unload (plugin);
}