aboutsummaryrefslogtreecommitdiff
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:49:23 +0200
commit099102dc573293656988adf6b9783255ae4fc643 (patch)
tree82e7e1b54af2b84f2013d4e59c8efea10857338e
parentcdbf3a05ae3c92122b8ec15073c6fadfa0793315 (diff)
downloadexchange-099102dc573293656988adf6b9783255ae4fc643.tar.gz
exchange-099102dc573293656988adf6b9783255ae4fc643.zip
modify TALER_EXCHANGE_deposits_get() API to avoid NULL pointers and need for deep copies
-rw-r--r--src/include/taler_exchange_service.h1
-rw-r--r--src/testing/testing_api_cmd_deposits_get.c9
2 files changed, 1 insertions, 9 deletions
diff --git a/src/include/taler_exchange_service.h b/src/include/taler_exchange_service.h
index ea185f09a..38928dc18 100644
--- a/src/include/taler_exchange_service.h
+++ b/src/include/taler_exchange_service.h
@@ -1722,7 +1722,6 @@ struct TALER_EXCHANGE_DepositData
1722 * yet execute the transaction 1722 * yet execute the transaction
1723 */ 1723 */
1724 struct TALER_Amount coin_contribution; 1724 struct TALER_Amount coin_contribution;
1725
1726}; 1725};
1727 1726
1728 1727
diff --git a/src/testing/testing_api_cmd_deposits_get.c b/src/testing/testing_api_cmd_deposits_get.c
index 700b0edf4..d5617ec25 100644
--- a/src/testing/testing_api_cmd_deposits_get.c
+++ b/src/testing/testing_api_cmd_deposits_get.c
@@ -111,14 +111,7 @@ deposit_wtid_cb (void *cls,
111 switch (hr->http_status) 111 switch (hr->http_status)
112 { 112 {
113 case MHD_HTTP_OK: 113 case MHD_HTTP_OK:
114 << << << < HEAD 114 tts->wtid = dd->wtid;
115 tts->wtid = dd->wtid;
116 ====== =
117 GNUNET_assert (NULL != dd->wtid);
118 tts->wtid = *dd->wtid;
119 >> >> >> > modify
120 TALER_EXCHANGE_deposits_get () API to combine returned arguments into
121 a struct (simplifies merchant later)
122 if (NULL != tts->bank_transfer_reference) 115 if (NULL != tts->bank_transfer_reference)
123 { 116 {
124 const struct TALER_TESTING_Command *bank_transfer_cmd; 117 const struct TALER_TESTING_Command *bank_transfer_cmd;