aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-04-01 21:00:05 +0200
committerChristian Grothoff <christian@grothoff.org>2016-04-01 21:00:05 +0200
commit937078bbdc747c92d45a3879862ff4664d1ff636 (patch)
tree46471812669aadf814dca37f181c7765b6ce7039 /src
parenta2a7a3272da4e0783bb7562d5f66baffc51d96dc (diff)
fix NPE
Diffstat (limited to 'src')
-rw-r--r--src/exchange/taler-exchange-aggregator.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/exchange/taler-exchange-aggregator.c b/src/exchange/taler-exchange-aggregator.c
index 4699ff4bc..e293a23cd 100644
--- a/src/exchange/taler-exchange-aggregator.c
+++ b/src/exchange/taler-exchange-aggregator.c
@@ -93,8 +93,6 @@ static unsigned int aggregation_limit = 10000;
static int
exchange_serve_process_config (const char *exchange_directory)
{
- char *type;
-
cfg = TALER_config_load (exchange_directory);
if (NULL == cfg)
{
@@ -130,7 +128,7 @@ exchange_serve_process_config (const char *exchange_directory)
GNUNET_CONFIGURATION_get_value_string (cfg,
"exchange",
"wireformat",
- &type))
+ &exchange_wireformat))
{
GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
"exchange",
@@ -143,21 +141,18 @@ exchange_serve_process_config (const char *exchange_directory)
{
fprintf (stderr,
"Failed to initialize DB subsystem\n");
- GNUNET_free (type);
return GNUNET_SYSERR;
}
if (NULL ==
(wire_plugin = TALER_WIRE_plugin_load (cfg,
- type)))
+ exchange_wireformat)))
{
fprintf (stderr,
"Failed to load wire plugin for `%s'\n",
- type);
- GNUNET_free (type);
+ exchange_wireformat);
return GNUNET_SYSERR;
}
- GNUNET_free (type);
return GNUNET_OK;
}