diff options
Diffstat (limited to 'src/backenddb/plugin_merchantdb_postgres.c')
-rw-r--r-- | src/backenddb/plugin_merchantdb_postgres.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/backenddb/plugin_merchantdb_postgres.c b/src/backenddb/plugin_merchantdb_postgres.c index bc3af1bb..6970233c 100644 --- a/src/backenddb/plugin_merchantdb_postgres.c +++ b/src/backenddb/plugin_merchantdb_postgres.c @@ -1749,7 +1749,7 @@ postgres_update_contract_terms (void *cls, struct PostgresClosure *pg = cls; struct GNUNET_TIME_Absolute pay_deadline; struct GNUNET_TIME_Absolute refund_deadline; - const char *fulfillment_url; + const char *fulfillment_url = NULL; struct GNUNET_HashCode h_contract_terms; if (GNUNET_OK != @@ -1766,6 +1766,9 @@ postgres_update_contract_terms (void *cls, &pay_deadline), TALER_JSON_spec_absolute_time ("refund_deadline", &refund_deadline), + GNUNET_JSON_spec_mark_optional ( + GNUNET_JSON_spec_string ("fulfillment_url", + &fulfillment_url)), GNUNET_JSON_spec_end () }; enum GNUNET_GenericReturnValue res; @@ -1780,9 +1783,6 @@ postgres_update_contract_terms (void *cls, } } - fulfillment_url = - json_string_value (json_object_get (contract_terms, - "fulfillment_url")); check_connection (pg); { struct GNUNET_PQ_QueryParam params[] = { |