aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/exchange-tools/taler-exchange-keyup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/exchange-tools/taler-exchange-keyup.c b/src/exchange-tools/taler-exchange-keyup.c
index ccaca14f8..b37a7a4c1 100644
--- a/src/exchange-tools/taler-exchange-keyup.c
+++ b/src/exchange-tools/taler-exchange-keyup.c
@@ -288,7 +288,6 @@ get_cointype_dir (const struct CoinTypeParams *p)
struct GNUNET_HashCode hash;
char *hash_str;
char *val_str;
- size_t i;
hash_coin_type (p, &hash);
hash_str = GNUNET_STRINGS_data_to_string_alloc (&hash,
@@ -298,7 +297,8 @@ get_cointype_dir (const struct CoinTypeParams *p)
hash_str[HASH_CUTOFF] = 0;
val_str = TALER_amount_to_string (&p->value);
- for (i = 0; i < strlen (val_str); i++)
+ GNUNET_assert (NULL != val_str);
+ for (size_t i = 0; i < strlen (val_str); i++)
if ( (':' == val_str[i]) ||
('.' == val_str[i]) )
val_str[i] = '_';