Complete.Org: Mailing Lists: Archives: freeciv-dev: February 2004:
[Freeciv-Dev] Re: (PR#7405) list cleanup
Home

[Freeciv-Dev] Re: (PR#7405) list cleanup

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: per@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#7405) list cleanup
From: "Raimar Falke" <i-freeciv-lists@xxxxxxxxxxxxx>
Date: Mon, 9 Feb 2004 22:23:36 -0800
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=7405 >

On Mon, Feb 09, 2004 at 03:31:09PM -0800, Per I. Mathisen wrote:
> 
> <URL: http://rt.freeciv.org/Ticket/Display.html?id=7405 >
> 
> This patch fixes a problem with lack of deinitialization of players and
> double initialization of players in the server. It also makes sure that
> connection, city and unit lists are properly deinitialized.

> +  assert(conn_list_size(&pplayer->connections) == 0);
> +  conn_list_unlink_all(&pplayer->connections);

If the first doesn't kill the program isn't the second a nop?!

        Raimar

-- 
 email: rf13@xxxxxxxxxxxxxxxxx
 Q:  Do you know what the death rate around here is?
 A:  One per person.




[Prev in Thread] Current Thread [Next in Thread]