diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/reclaim/gnunet-service-reclaim_tickets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reclaim/gnunet-service-reclaim_tickets.c b/src/reclaim/gnunet-service-reclaim_tickets.c index 5d3119c6f..70075bb8e 100644 --- a/src/reclaim/gnunet-service-reclaim_tickets.c +++ b/src/reclaim/gnunet-service-reclaim_tickets.c | |||
@@ -1295,14 +1295,14 @@ issue_ticket (struct TicketIssueHandle *ih) | |||
1295 | char *label; | 1295 | char *label; |
1296 | int i; | 1296 | int i; |
1297 | int j; | 1297 | int j; |
1298 | int attrs_count = 0; | 1298 | int record_count; |
1299 | 1299 | ||
1300 | for (le = ih->attrs->list_head; NULL != le; le = le->next) | 1300 | for (le = ih->attrs->list_head; NULL != le; le = le->next) |
1301 | attrs_count++; | 1301 | record_count++; |
1302 | 1302 | ||
1303 | // Worst case we have one presentation per attribute | 1303 | // Worst case we have one presentation per attribute |
1304 | attrs_record = | 1304 | attrs_record = |
1305 | GNUNET_malloc (2 * attrs_count * sizeof(struct GNUNET_GNSRECORD_Data)); | 1305 | GNUNET_malloc (1 + 2 * record_count * sizeof(struct GNUNET_GNSRECORD_Data)); |
1306 | i = 0; | 1306 | i = 0; |
1307 | for (le = ih->attrs->list_head; NULL != le; le = le->next) | 1307 | for (le = ih->attrs->list_head; NULL != le; le = le->next) |
1308 | { | 1308 | { |