summaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-05-03 20:12:18 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-05 16:35:00 +0200
commit4844023f6904d2281cc90fe23d372978a9d9c137 (patch)
tree52511207818cf5745e52599bd74d8f5ecf846196 /src/testing
parentcde71b7fe74c2a5abb32bf07d40a112e9d7b1135 (diff)
downloadexchange-4844023f6904d2281cc90fe23d372978a9d9c137.tar.gz
exchange-4844023f6904d2281cc90fe23d372978a9d9c137.tar.bz2
exchange-4844023f6904d2281cc90fe23d372978a9d9c137.zip
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing_api_cmd_deposits_get.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/testing/testing_api_cmd_deposits_get.c b/src/testing/testing_api_cmd_deposits_get.c
index 6f0140116..33987e161 100644
--- a/src/testing/testing_api_cmd_deposits_get.c
+++ b/src/testing/testing_api_cmd_deposits_get.c
@@ -111,8 +111,7 @@ deposit_wtid_cb (void *cls,
switch (hr->http_status)
{
case MHD_HTTP_OK:
- GNUNET_assert (NULL != dd->wtid);
- tts->wtid = *dd->wtid;
+ tts->wtid = dd->wtid;
if (NULL != tts->bank_transfer_reference)
{
const struct TALER_TESTING_Command *bank_transfer_cmd;
@@ -140,7 +139,7 @@ deposit_wtid_cb (void *cls,
}
/* Compare that expected and gotten subjects match. */
- if (0 != GNUNET_memcmp (dd->wtid,
+ if (0 != GNUNET_memcmp (&dd->wtid,
wtid_want))
{
GNUNET_break (0);