Complete.Org: Mailing Lists: Archives: freeciv-dev: July 2001:
[Freeciv-Dev] Re: malloc warning (PR#842)
Home

[Freeciv-Dev] Re: malloc warning (PR#842)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Re: malloc warning (PR#842)
From: Falk Hueffner <falk.hueffner@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: 11 Jul 2001 13:36:47 +0200

Gaute B Strokkenes <gs234@xxxxxxxxx> writes:

> On Wed, 11 Jul 2001, ChrisK@xxxxxxxx wrote:
> > CVS 11 JUL 2001 GTK+ Linux i386
> > 
> > I've got a 
> > 
> > 2: Warning: malloc with size 0 at line 750 of unittools.c
> > 2: Letzte Mitteilung 2mal wiederholt.
> > 
> > Reproducible. Savegame is here:
> > 
> > http://www.enter.de/~c.knoke/bugs/malloc.sav.gz
> > 
> > Login as chris, start game, terminate client.
> 
> Please try the following patch (untested):

I don't see the point. What's the problem with allocating 0 bytes? It
doesn't do any harm.

        Falk



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