diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-products-ID.c | 3 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-orders.c | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/taler-merchant-httpd_private-patch-products-ID.c b/src/backend/taler-merchant-httpd_private-patch-products-ID.c index e8c08359..2e01b769 100644 --- a/src/backend/taler-merchant-httpd_private-patch-products-ID.c +++ b/src/backend/taler-merchant-httpd_private-patch-products-ID.c @@ -198,7 +198,8 @@ TMH_private_patch_products_ID (const struct TMH_RequestHandler *rh, product_id, &pd); { - MHD_RESULT ret; + MHD_RESULT ret = MHD_NO; + switch (qs) { case GNUNET_DB_STATUS_HARD_ERROR: diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c index 33883f5f..0e06f7fa 100644 --- a/src/backend/taler-merchant-httpd_private-post-orders.c +++ b/src/backend/taler-merchant-httpd_private-post-orders.c @@ -928,8 +928,8 @@ merge_inventory (struct MHD_Connection *connection, &pd); if (qs <= 0) { - enum TALER_ErrorCode ec; - unsigned int http_status; + enum TALER_ErrorCode ec = TALER_EC_INTERNAL_INVARIANT_FAILURE; + unsigned int http_status = 0; switch (qs) { |