aboutsummaryrefslogtreecommitdiff
path: root/src/auditordb/pg_get_balance.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auditordb/pg_get_balance.c')
-rw-r--r--src/auditordb/pg_get_balance.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/auditordb/pg_get_balance.c b/src/auditordb/pg_get_balance.c
index 4edc1c89f..2bacbb507 100644
--- a/src/auditordb/pg_get_balance.c
+++ b/src/auditordb/pg_get_balance.c
@@ -56,6 +56,7 @@ struct BalanceContext
* Set to true on failure.
*/
bool failure;
+
};
@@ -99,9 +100,10 @@ balance_cb (void *cls,
return;
}
if (is_missing)
- memset (ctx->dst[i],
- 0,
- sizeof (struct TALER_Amount));
+ {
+ TALER_amount_set_zero (pg->currency,
+ ctx->dst[i]);
+ }
ctx->off++;
}
}