aboutsummaryrefslogtreecommitdiff
path: root/src/bank-lib/fakebank.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2019-02-15 12:41:26 +0100
committerChristian Grothoff <christian@grothoff.org>2019-02-15 12:41:26 +0100
commit1ce69e6b2f1b963a473b0787a9f815f6b9ec46e7 (patch)
tree87058876f28aecd1f2163f66790e42902f7faf11 /src/bank-lib/fakebank.c
parentc8b05da9b1765d17a0503e963c8ba3469d8543cd (diff)
initialize start_number in fakebank
Diffstat (limited to 'src/bank-lib/fakebank.c')
-rw-r--r--src/bank-lib/fakebank.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bank-lib/fakebank.c b/src/bank-lib/fakebank.c
index 52f0d73a9..da6bb1552 100644
--- a/src/bank-lib/fakebank.c
+++ b/src/bank-lib/fakebank.c
@@ -154,7 +154,7 @@ struct TALER_FAKEBANK_Handle
* Boxed @e mhd_fd.
*/
struct GNUNET_NETWORK_Handle *mhd_rfd;
-
+
/**
* File descriptor to use to wait for MHD.
*/
@@ -730,6 +730,7 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
GNUNET_break (0);
return MHD_NO;
}
+ start_number = 0;
if ( (1 != sscanf (delta,
"%lld",
&count)) ||
@@ -880,7 +881,7 @@ handle_history (struct TALER_FAKEBANK_Handle *h,
"wt_subject", subject);
GNUNET_assert (NULL != trans);
GNUNET_free (subject);
-
+
history_element = GNUNET_new (struct HistoryElement);
history_element->element = trans;