diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-07-21 12:42:05 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-07-21 12:42:05 +0530 |
commit | f4e0ec373360c7cfc04f59143eda64717f4f12cb (patch) | |
tree | 5b1bd9d4fd6cc80d45a8aae3ce7c0660526fc734 /src/backend/taler-merchant-httpd_post-orders-ID-pay.c | |
parent | 95471d8638e56bada29e6611ed3de5aa5926f03b (diff) | |
download | merchant-f4e0ec373360c7cfc04f59143eda64717f4f12cb.tar.gz merchant-f4e0ec373360c7cfc04f59143eda64717f4f12cb.tar.bz2 merchant-f4e0ec373360c7cfc04f59143eda64717f4f12cb.zip |
use empty string as default for session ID
Diffstat (limited to 'src/backend/taler-merchant-httpd_post-orders-ID-pay.c')
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index ca041863..64ba5e66 100644 --- a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c +++ b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1593,6 +1593,11 @@ parse_pay (struct MHD_Connection *connection, GNUNET_assert (NULL != session_id); pc->session_id = GNUNET_strdup (session_id); } + else + { + /* use empty string as default if client didn't specify it */ + pc->session_id = GNUNET_strdup (""); + } } /* copy order ID */ |