summaryrefslogtreecommitdiff
path: root/src/backend/taler-merchant-httpd_private-post-orders.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backend/taler-merchant-httpd_private-post-orders.c')
-rw-r--r--src/backend/taler-merchant-httpd_private-post-orders.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
index 52c146ef..3c3f9ab8 100644
--- a/src/backend/taler-merchant-httpd_private-post-orders.c
+++ b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -1851,6 +1851,7 @@ parse_order (struct OrderContext *oc)
if (NULL != loca)
{
loca = json_deep_copy (loca);
+ GNUNET_assert (NULL != loca);
GNUNET_assert (0 ==
json_object_set_new (oc->parse_order.merchant,
"address",
@@ -1858,17 +1859,18 @@ parse_order (struct OrderContext *oc)
}
}
{
- json_t *locj;
+ json_t *juri;
/* Handle merchant jurisdiction */
- locj = settings->jurisdiction;
- if (NULL != locj)
+ juri = settings->jurisdiction;
+ if (NULL != juri)
{
- locj = json_deep_copy (locj);
+ juri = json_deep_copy (juri);
+ GNUNET_assert (NULL != juri);
GNUNET_assert (0 ==
json_object_set_new (oc->parse_order.merchant,
"jurisdiction",
- locj));
+ juri));
}
}
}