#45614: city_units_upkeep(): Pointless memset() Open Date: 2022-09-09 04:02 Last Update: 2022-09-10 02:11 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/45614 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45614 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-09-10 02:11 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted * Milestone Update from (None) to 3.0.4 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 5 - Medium MileStone: 3.0.4 Component: Server Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: city_units_upkeep() fills free_uk[] with zero by memset(). That's pointless, as all relevant values get assigned (none left uninitialized, or just added to) -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/45614 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=45614