check return value from taler_array_append_new()
This commit is contained in:
parent
ea1f2a1cd5
commit
b0ba819cf4
@ -54,12 +54,18 @@ fees_to_json (struct TALER_EXCHANGEDB_AggregateFees *af)
|
|||||||
json_decref (a);
|
json_decref (a);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
json_array_append_new (a,
|
if (0 !=
|
||||||
json_pack ("{s:o, s:o, s:o, s:o}",
|
json_array_append_new (a,
|
||||||
"wire_fee", TALER_JSON_from_amount (&af->wire_fee),
|
json_pack ("{s:o, s:o, s:o, s:o}",
|
||||||
"start_date", GNUNET_JSON_from_time_abs (af->start_date),
|
"wire_fee", TALER_JSON_from_amount (&af->wire_fee),
|
||||||
"end_date", GNUNET_JSON_from_time_abs (af->end_date),
|
"start_date", GNUNET_JSON_from_time_abs (af->start_date),
|
||||||
"sig", GNUNET_JSON_from_data_auto (&af->master_sig)));
|
"end_date", GNUNET_JSON_from_time_abs (af->end_date),
|
||||||
|
"sig", GNUNET_JSON_from_data_auto (&af->master_sig))))
|
||||||
|
{
|
||||||
|
GNUNET_break (0);
|
||||||
|
json_decref (a);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
af = af->next;
|
af = af->next;
|
||||||
}
|
}
|
||||||
return a;
|
return a;
|
||||||
|
Loading…
Reference in New Issue
Block a user