From d79df04ba7ea596c308d8d0803d6b5948d7e1252 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sun, 27 Feb 2022 14:17:49 +0100 Subject: -fix tests, clean up code --- src/reducer/anastasis_api_backup_redux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/reducer') 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; -- cgit v1.2.3