diff options
Diffstat (limited to 'src/wire')
| -rw-r--r-- | src/wire/plugin_wire_sepa.c | 24 | ||||
| -rw-r--r-- | src/wire/plugin_wire_test.c | 1 | 
2 files changed, 13 insertions, 12 deletions
| diff --git a/src/wire/plugin_wire_sepa.c b/src/wire/plugin_wire_sepa.c index 466e450b..e0a3426c 100644 --- a/src/wire/plugin_wire_sepa.c +++ b/src/wire/plugin_wire_sepa.c @@ -731,20 +731,20 @@ libtaler_plugin_wire_sepa_init (void *cls)    sc = GNUNET_new (struct SepaClosure);    if (NULL != cfg) +  { +    if (GNUNET_OK != +        GNUNET_CONFIGURATION_get_value_string (cfg, +                                               "exchange", +                                               "CURRENCY", +                                               &sc->currency))      { -      if (GNUNET_OK != -          GNUNET_CONFIGURATION_get_value_string (cfg, -                                                 "exchange", -                                                 "CURRENCY", -                                                 &sc->currency)) -        { -          GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, -                                     "exchange", -                                     "CURRENCY"); -          GNUNET_free (sc); -          return NULL; -        } +      GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR, +                                 "exchange", +                                 "CURRENCY"); +      GNUNET_free (sc); +      return NULL;      } +  }    plugin = GNUNET_new (struct TALER_WIRE_Plugin);    plugin->cls = sc;    plugin->amount_round = &sepa_amount_round; diff --git a/src/wire/plugin_wire_test.c b/src/wire/plugin_wire_test.c index 8c03d155..357449af 100644 --- a/src/wire/plugin_wire_test.c +++ b/src/wire/plugin_wire_test.c @@ -762,6 +762,7 @@ libtaler_plugin_wire_test_init (void *cls)        return NULL;      }      tc->bank = TALER_BANK_init (uri); +    GNUNET_free (uri);      if (NULL == tc->bank)      {        GNUNET_break (0); | 
