Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Re: Server stops after Trireme attack (PR#397)
Home

[Freeciv-Dev] Re: Server stops after Trireme attack (PR#397)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Cc: bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: Server stops after Trireme attack (PR#397)
From: Thue <thue@xxxxxxx>
Date: Mon, 19 Jun 2000 19:48:24 +0200

man, 19 jun 2000 skrev Christian Knoke:
> > 1: Warning: malloc with size 0 at line 265 of diplodlg.c

This is really a seperate bug (and the file is in the client). This patch does:
-Check for the size of the city list before mallocing (avoid warning)
-free the malloced memory after use
-cut-paste the sorting code into the gtk client
-update the comment

-Thue

Attachment: malloc_bug.diff
Description: Text Data


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