diff options
author | Christian Blättler <blatc2@bfh.ch> | 2023-12-20 18:53:03 +0100 |
---|---|---|
committer | Christian Grothoff <grothoff@gnunet.org> | 2023-12-23 00:10:29 +0800 |
commit | a7c9f6d41af7df37554e3340d673fa3648ccbed5 (patch) | |
tree | 53e19b8c7ec67da3c9db1c0c8de479e21032eda2 /src/backend | |
parent | 8b66d457f8404f4ddfcd0be00102f2792e02d1ff (diff) | |
download | merchant-a7c9f6d41af7df37554e3340d673fa3648ccbed5.tar.gz merchant-a7c9f6d41af7df37554e3340d673fa3648ccbed5.tar.bz2 merchant-a7c9f6d41af7df37554e3340d673fa3648ccbed5.zip |
remove init lines
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 9090b317..52eaa11d 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -1397,22 +1397,8 @@ parse_order (struct OrderContext *oc) const struct TALER_MERCHANTDB_InstanceSettings *settings = &oc->hc->instance->settings; - oc->parse_order.order_id = NULL; - oc->parse_order.summary_i18n = NULL; - oc->parse_order.public_reorder_url = NULL; - oc->parse_order.fulfillment_message = NULL; - oc->parse_order.fulfillment_message_i18n = NULL; - oc->parse_order.fulfillment_url = NULL; - oc->parse_order.merchant_base_url = NULL; - oc->parse_order.timestamp = GNUNET_TIME_UNIT_ZERO_TS; oc->parse_order.refund_deadline = GNUNET_TIME_UNIT_FOREVER_TS; - oc->parse_order.pay_deadline = GNUNET_TIME_UNIT_ZERO_TS; oc->parse_order.wire_deadline = GNUNET_TIME_UNIT_FOREVER_TS; - oc->parse_order.delivery_location = NULL; - oc->parse_order.delivery_date = GNUNET_TIME_UNIT_ZERO_TS; - oc->parse_order.products = NULL; - oc->parse_order.auto_refund = GNUNET_TIME_UNIT_ZERO; - oc->parse_order.extra = NULL; const json_t *jmerchant = NULL; /* auto_refund only needs to be type-checked, @@ -1424,8 +1410,8 @@ parse_order (struct OrderContext *oc) &oc->parse_order.brutto), GNUNET_JSON_spec_string("summary", &oc->parse_order.summary), - GNUNET_JSON_spec_array_const ("products", - &oc->parse_order.products), + GNUNET_JSON_spec_array_const ("products", + &oc->parse_order.products), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_json ("summary_i18n", &oc->parse_order.summary_i18n), @@ -1989,7 +1975,6 @@ merge_inventory (struct OrderContext *oc) static void parse_request (struct OrderContext *oc) { - // TODO: Set default values for optional fields in oc->parse_request const json_t *ip = NULL; const json_t *uuid = NULL; const char *otp_id = NULL; |