gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-exchange] branch master updated: -allow NULL in amounts


From: gnunet
Subject: [taler-exchange] branch master updated: -allow NULL in amounts
Date: Sat, 31 Jul 2021 23:07:05 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 243d3992 -allow NULL in amounts
243d3992 is described below

commit 243d39920cd2006400a2a3a0ca275806218d1b30
Author: Christian Grothoff <christian@grothoff.org>
AuthorDate: Sat Jul 31 23:07:03 2021 +0200

    -allow NULL in amounts
---
 src/json/json_pack.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/json/json_pack.c b/src/json/json_pack.c
index 1859e264..a03b09e2 100644
--- a/src/json/json_pack.c
+++ b/src/json/json_pack.c
@@ -113,7 +113,9 @@ TALER_JSON_pack_amount (const char *name,
 {
   struct GNUNET_JSON_PackSpec ps = {
     .field_name = name,
-    .object = TALER_JSON_from_amount (amount)
+    .object = (NULL != amount)
+    ? TALER_JSON_from_amount (amount)
+    : NULL
   };
 
   return ps;
@@ -126,7 +128,9 @@ TALER_JSON_pack_amount_nbo (const char *name,
 {
   struct GNUNET_JSON_PackSpec ps = {
     .field_name = name,
-    .object = TALER_JSON_from_amount_nbo (amount)
+    .object = (NULL != amount)
+    ? TALER_JSON_from_amount_nbo (amount)
+    : NULL
   };
 
   return ps;

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]