summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-11-10 17:41:07 +0100
committerChristian Grothoff <christian@grothoff.org>2018-11-10 17:41:07 +0100
commit48ad5d2b5c8a625ea59794bfe403f5e10553195a (patch)
treedb43cddb2b2867dd55de6a2294cf9008e9da0d49 /src
parente7682b3f8dce9e7be1ced921fc6d8d84020e99d8 (diff)
downloadexchange-48ad5d2b5c8a625ea59794bfe403f5e10553195a.tar.gz
exchange-48ad5d2b5c8a625ea59794bfe403f5e10553195a.tar.bz2
exchange-48ad5d2b5c8a625ea59794bfe403f5e10553195a.zip
fix compiler warning due to possiblity of uninitialized values if enum is out-of-range
Diffstat (limited to 'src')
-rw-r--r--src/wire-plugins/plugin_wire_taler-bank.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wire-plugins/plugin_wire_taler-bank.c b/src/wire-plugins/plugin_wire_taler-bank.c
index abbad1aa3..029380fb4 100644
--- a/src/wire-plugins/plugin_wire_taler-bank.c
+++ b/src/wire-plugins/plugin_wire_taler-bank.c
@@ -399,11 +399,11 @@ do_prepare (void *cls)
len_o = strlen (pth->origin_account_url) + 1;
len_i = strlen (pth->destination_account_url) + 1;
len_b = strlen (pth->exchange_base_url) + 1;
+ len_au = 0;
+ len_ap = 0;
switch (pth->auth.method)
{
case TALER_BANK_AUTH_NONE:
- len_au = 0;
- len_ap = 0;
break;
case TALER_BANK_AUTH_BASIC:
len_au = strlen (pth->auth.details.basic.username) + 1;