aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-exchange-dbinit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exchange-tools/taler-exchange-dbinit.c b/src/exchange-tools/taler-exchange-dbinit.c
index acc37be8d..32f0570f3 100644
--- a/src/exchange-tools/taler-exchange-dbinit.c
+++ b/src/exchange-tools/taler-exchange-dbinit.c
@@ -86,6 +86,7 @@ run (void *cls,
fprintf (stderr,
"Failed to initialize database.\n");
TALER_EXCHANGEDB_plugin_unload (plugin);
+ plugin = NULL;
global_ret = EXIT_NOPERMISSION;
return;
}
@@ -97,6 +98,7 @@ run (void *cls,
fprintf (stderr,
"Failed to prepare database.\n");
TALER_EXCHANGEDB_plugin_unload (plugin);
+ plugin = NULL;
global_ret = EXIT_NOPERMISSION;
return;
}
@@ -119,6 +121,7 @@ run (void *cls,
}
}
TALER_EXCHANGEDB_plugin_unload (plugin);
+ plugin = NULL;
}