summaryrefslogtreecommitdiff
path: root/src/reducer
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-02-27 14:17:49 +0100
committerChristian Grothoff <christian@grothoff.org>2022-02-27 14:17:49 +0100
commitd79df04ba7ea596c308d8d0803d6b5948d7e1252 (patch)
treeae63ee7e3ac491adc1658dce105eda7ec3430fd1 /src/reducer
parent393d657198c650f2b256457a4b26b8431806b4d2 (diff)
downloadanastasis-d79df04ba7ea596c308d8d0803d6b5948d7e1252.tar.gz
anastasis-d79df04ba7ea596c308d8d0803d6b5948d7e1252.tar.bz2
anastasis-d79df04ba7ea596c308d8d0803d6b5948d7e1252.zip
-fix tests, clean up code
Diffstat (limited to 'src/reducer')
-rw-r--r--src/reducer/anastasis_api_backup_redux.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/reducer/anastasis_api_backup_redux.c b/src/reducer/anastasis_api_backup_redux.c
index e366ec1..b3ee9dd 100644
--- a/src/reducer/anastasis_api_backup_redux.c
+++ b/src/reducer/anastasis_api_backup_redux.c
@@ -2609,8 +2609,7 @@ update_expiration_cost (json_t *state,
{
struct Costs *nxt = costs->next;
- if ( (0 != costs->cost.value) ||
- (0 != costs->cost.fraction) )
+ if (! TALER_amount_is_zero (&costs->cost))
{
json_t *ao;