URL:
<http://gna.org/patch/?2541>
Summary: Initialize citymap pointer
Project: Freeciv
Submitted by: cazfi
Submitted on: Wed 16 Feb 2011 01:39:19 PM EET
Category: general
Priority: 5 - Normal
Status: Ready For Test
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: 2.2.5, 2.3.0, 2.4.0
_______________________________________________________
Details:
citymap pointer is never initialized, but just used as it happens to be in
first fc_realloc() call. At least theoretically this could lead to problems
when high level of compiler optimization is enabled. Attached patch
initializes it to NULL.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Wed 16 Feb 2011 01:39:19 PM EET Name: InitCMPtr.diff Size: 377B By:
cazfi
<http://gna.org/patch/download.php?file_id=12471>
_______________________________________________________
Reply to this item at:
<http://gna.org/patch/?2541>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev