[Freeciv-tickets] [freeciv] #46204: check_city_migrations_player() clang analyzer warning about city_owner(NULL)

Zurück zum Archiv-Index
OSDN Ticket System norep****@osdn*****
Mon Dec 19 14:41:28 JST 2022


#46204: check_city_migrations_player() clang analyzer warning about city_owner(NULL)

  Open Date: 2022-12-05 12:37
Last Update: 2022-12-19 07:41

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/46204
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46204

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2022-12-19 07:41 Updated by: cazfi
 * Status Update from Open to Closed
 * Resolution Update from Accepted to Fixed


---------------------------------------------------------------------
Ticket Status:

      Reporter: cazfi
         Owner: cazfi
          Type: Bugs
        Status: Closed
      Priority: 5 - Medium
     MileStone: 3.0.6
     Component: Server
      Severity: 5 - Medium
    Resolution: Fixed
---------------------------------------------------------------------

Ticket details:

Clang analyzer thinks that 'nname = nation_adjective_for_player(city_owner(best_city_world));' in check_city_migrations_player() might get called with NULL 'best_city_world'.

-- 
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/46204
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46204



More information about the Freeciv-tickets mailing list
Zurück zum Archiv-Index